Hi All,
I have an admin panel built on Django 2.0.6, Mysql 5.7 and Python 3.6.
Now I have written following signal code in signals.py-
from .models import MerchantStores
from django.db.models.signals import post_save
from django.dispatch import receiver
@receiver(post_save, sender = MerchantStor
Can you show us the view where the save() is invoked?
On Wed, 21 Nov 2018 at 10:57, prateek gupta wrote:
> Hi All,
>
> I have an admin panel built on Django 2.0.6, Mysql 5.7 and Python 3.6.
>
> Now I have written following signal code in signals.py-
> from .models import MerchantStores
> from dj
@Yavin Aalto Arba
I am using models.py, admin.py for my view, no any customized forms or view.
[image: screen_3.JPG]
[image: screen_2.JPG]
[image: screen_1.JPG]
PFA screen shot for the same.
On Wednesday, November 21, 2018 at 2:46:41 PM UTC+5:30, Yavin Aalto Arba
wrote:
>
> Can you show us th
Can you please clear where you saw ["created"] keyword?
On Wednesday, November 21, 2018 at 3:19:56 PM UTC+5:30, Yavin Aalto Arba
wrote:
>
> Something doesn't add up. Can you check the ["created"] keyword? What does
> it say?
>
> On Wed, 21 Nov 2018 at 11:26, prateek gupta > wrote:
>
>> @Yavin A
I just printed the value of created as
kwargs.get("created")
And it''s vaulue is True.
On Wednesday, November 21, 2018 at 3:19:56 PM UTC+5:30, Yavin Aalto Arba
wrote:
>
> Something doesn't add up. Can you check the ["created"] keyword? What does
> it say?
>
> On Wed, 21 Nov 2018 at 11:26, pr
you need to add the facebook package in your installed apps
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to
if created is true it means that the signal is being sent AFTER the
instance was saved(I am assuming this is a new object and not an update!)
weird.
...what happens when you manually do an MerchantStores.objects.create(...)
call with all the mandatory details?
On Wed, 21 Nov 2018 at 12:33, prate
Hello,
I've been using Django 2.2Dev for a while now, since April 2018, and it is
working just fine (I got my reasons why Django Dev). But since the last git
pull, it shows the CSRF token missing, on every page has a form with CSRF
token.
Is there something broke or ... ? since My Django-2.2D
Hi,
add these two lines to your settings.py file
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
after that in your base urls.py (a file along with settings.py)
add the following url:
from django.conf.urls.static import static
from django.conf import settings
if settings.DEBU
I am sorry, maybe I am understanding wrong, but isn't log as expected?
Since the signal is run synchronously within the Django request, "POST
/adminapp/merchantstores/add/" gets logged, only after the signal has
finished running.
On Wed, Nov 21, 2018 at 6:55 PM Yavin Aalto Arba
wrote:
> if crea
On Wednesday, November 21, 2018 at 5:14:44 AM UTC+1, Tushar Nadkar wrote:
>
> I am trying to install Django facebook graph in my project ,
>
> I installed ‘facebook’ in Insatlled_app and added
>
>
>
> ['facebook.middleware.SignedRequestMiddleware',
>
> 'facebook.middleware.AppRequestMiddl
Hi,
use the following command and see if it works...
./manage.py runserver
Ayser shuhaib <embedded.mana...@gmail.com> در تاریخ سهشنبه ۲۰
نوامبر ۲۰۱۸ ساعت ۲۲:۳۴ نوشت:
> What is the message that you get when you run Python manage.py runserver
>
> On Tue, 20 Nov 2018 at 20:58, Mohamed Hashi
Also install wrapped if you haven't already
On Wed, 21 Nov 2018, 7:08 p.m. رهام صادقی Hi,
> use the following command and see if it works...
> ./manage.py runserver
>
> Ayser shuhaib <embedded.mana...@gmail.com> در تاریخ سهشنبه ۲۰
> نوامبر ۲۰۱۸ ساعت ۲۲:۳۴ نوشت:
>
>> What is the message t
how to use place in model based form
On Wed, 21 Nov 2018 at 19:08, Saurabh Agrawal
wrote:
> I am sorry, maybe I am understanding wrong, but isn't log as expected?
>
> Since the signal is run synchronously within the Django request, "POST
> /adminapp/merchantstores/add/" gets logged, only after t
how to use placeholder in model based form
On Wed, 21 Nov 2018 at 19:56, Pradeep Singh wrote:
> how to use place in model based form
>
> On Wed, 21 Nov 2018 at 19:08, Saurabh Agrawal
> wrote:
>
>> I am sorry, maybe I am understanding wrong, but isn't log as expected?
>>
>> Since the signal is r
base.html file
https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css";
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
https://code.jquery.com/jquery-3.3.1.slim.min.js";
integrity="sha384-q8i/X+965DzO0rT7abK41J
Hi.
You haven't given us any useful information for assisting you. You will get
more replies if you say what you have done, show what your settings look
like, tell if your are using the development server, stuff like that.
Welcome to the django community
On Wed, 21 Nov 2018, 16:06 Obodoma Uzondu
sounds like you really should post this to the django-developers user group
or the project bug tracker as a regression report.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, sen
send us screenshot from issue
On Wednesday, 21 November 2018 15:38:19 UTC+2, Rabah Saadi wrote:
>
> Hello,
>
> I've been using Django 2.2Dev for a while now, since April 2018, and it is
> working just fine (I got my reasons why Django Dev). But since the last git
> pull, it shows the CSRF toke
what is difference between class based view and function based view and
which I choose to build full website
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dj
You build webapps with functions
And functions You combine in classes
So the function can be re used Inside your application
Verstuurd vanaf mijn iPhone
> Op 21 nov. 2018 om 18:26 heeft Gear Crew het
> volgende geschreven:
>
> what is difference between class based view and function based vie
Thanks Andrew this helps me as well. There is a missing piece I don't
understand yet. In my management command, then I probably will have to use
`async_to_sync(channel_layer.group_send)`
to send the message to consumers (right?). The only problem is that
whenever I use async_to_sync it creates
That was really not that helpful.
Classed Based Views (CBV) use a lot of defaults for populating your
templates, forms and views. You can inherit and extend CBV's to add the
functionality that you require. You could have a base class that uses all
of the same default functionality and then just ad
Saurabh Agrawal, I am not sure either. That's why I wanted to check if
manually the API results are the same. The created keyword returns true so
it HAS to have been run after save().
On Wed, 21 Nov 2018 at 15:37, Saurabh Agrawal
wrote:
> I am sorry, maybe I am understanding wrong, but isn't log
try with self.channel_layer.group_send ?
On Wed, 21 Nov 2018 at 19:44, Nasir Sh wrote:
> Thanks Andrew this helps me as well. There is a missing piece I don't
> understand yet. In my management command, then I probably will have to use
> `async_to_sync(channel_layer.group_send)`
> to send the
i install wrap
but till now python manage.py runserver isnt running with me
guys any help plz
في الأربعاء، 21 نوفمبر 2018 في 7:16 م تمت كتابة ما يلي بواسطة Shubham
Rewale <rewale...@gmail.com>:
> Also install wrapped if you haven't already
>
> On Wed, 21 Nov 2018, 7:08 p.m. رهام صادقی
>>
Django developers talk about three kinds of views:
- function views (FV)
- class-based views (CBV)
- generic class-based views (GCBV)
People do not make always make the difference between CBV and GCBV, which is
unfortunate, as they serve different purposes (naming things
I *had* added the above, but I put them in the 'lower down' URLS.PY file.
As soon as I added them to the higher-level one everything worked!
Thanks Roham! Thanks Akash! I really appreciate your time and help here.
Jeff
On Wed, Nov 21, 2018 at 8:38 AM رهام صادقی
wrote:
> Hi,
> add t
It is suspicious that value passed in to get_db_prep_value is failing
isinstance since it looks like value is already a UUID. Are you sure the UUID
type of value is uuid.UUID?
On November 20, 2018 11:44:52 AM CST, Jerry Vinokurov
wrote:
>Hi all,
>
>We have a project that uses UUIDs as a primar
did you run it inside your project directory?
On Wed, Nov 21, 2018 at 11:47 AM Mohamed Hashi
wrote:
> i install wrap
> but till now python manage.py runserver isnt running with me
> guys any help plz
>
> في الأربعاء، 21 نوفمبر 2018 في 7:16 م تمت كتابة ما يلي بواسطة Shubham
> Rewale <rewale.
It might help to create a link to the static file and then check the error
upon reaching the url. I also recommend using the django debugging tool
bar!
Otherwise, it could really help if u were to share the location of the
file in the project as well as the static url and other static related
set
Mohamed, if you have some time I can do a webex session with you to check
it out.
On Thu, Nov 22, 2018, 5:24 AM Alfredo Sumague did you run it inside your project directory?
>
> On Wed, Nov 21, 2018 at 11:47 AM Mohamed Hashi
> wrote:
>
>> i install wrap
>> but till now python manage.py runserver
when a button is clicked , i want to send specific mail after 3 days ? how
can i do that in django
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+u
celery is Django package check out that.
On Thu, Nov 22, 2018 at 11:53 AM Tushar Nadkar
wrote:
> when a button is clicked , i want to send specific mail after 3 days ? how
> can i do that in django
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users
https://stackoverflow.com/questions/28992466/send-weekly-email-notifications-to-users-regarding-any-changes-in-data
On Thu, Nov 22, 2018 at 12:06 PM mazz ahmed wrote:
> celery is Django package check out that.
>
> On Thu, Nov 22, 2018 at 11:53 AM Tushar Nadkar
> wrote:
>
>> when a button is cli
I was trying the basic django-kronos command to test:
I did pip3 install django-kronos,
myproject/myapp/cron.py:
import kronos
import random
@kronos.register('* * * * *')
def complain():
complaints = [
"I forgot to migrate our applications's cron jobs to our new server! Darn!",
"I'm out of compla
Please help me. I am new to Django, cannot undertsand the following. I have
subclass of CreateView for creating a post. I'm creating a rental site
project where people can post their apart and attach files (images) to it.
One should have possibility to attach as many images as he wants to ONE
f
37 matches
Mail list logo