Re: "detail": "CSRF Failed: Referer checking failed - no Referer."

2020-04-30 Thread shreehari Vaasistha L
Also csrf exempt is not making any difference On Thursday, April 30, 2020 at 6:48:36 PM UTC+5:30, shreehari Vaasistha L wrote: > > hello > i have deployed django app on aws . > with https im getting error "detail": "CSRF Failed: Referer checking > failed

"detail": "CSRF Failed: Referer checking failed - no Referer."

2020-04-30 Thread shreehari Vaasistha L
hello i have deployed django app on aws . with https im getting error "detail": "CSRF Failed: Referer checking failed - no Referer." . But with http everything works fine. Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Notifications in DRF

2020-04-21 Thread shreehari Vaasistha L
if anyone has implemented FCM in django rest framework using https://github.com/xtrinch/fcm-django or anyother packages, please share it with me. need to send notifications to devices. Thanks in Advance ! -- You received this message because you are subscribed to the Google Groups "Django

Re: Models as choices

2020-04-16 Thread shreehari Vaasistha L
rsday, April 16, 2020 at 12:52:07 PM UTC+8, shreehari Vaasistha L > wrote: >> >> how can i use model x values as choices for model y ? >> >> for eg: >> class countries(models.Model): >> country = models.CharField(max_length=200) >> >>

Re: Models as choices

2020-04-16 Thread shreehari Vaasistha L
Thanks for helping me out . On Thursday, April 16, 2020 at 2:34:13 PM UTC+5:30, Kasper Laudrup wrote: > > Hi Shreehari > > On 16/04/2020 10.17, shreehari Vaasistha L wrote: > > Object of type ValueError is not JSON serializable > > > > > > getting thi

Re: Models as choices

2020-04-16 Thread shreehari Vaasistha L
, April 16, 2020 at 12:57:16 PM UTC+5:30, Antje Kazimiers wrote: > > with a Foreign Key field, one-to-many relationship: > > https://docs.djangoproject.com/en/3.0/topics/db/examples/many_to_one/ > > Antje > On 4/16/20 6:52 AM, shreehari Vaasistha L wrote: > > how can i us

Re: Models as choices

2020-04-16 Thread shreehari Vaasistha L
e/ > > Antje > On 4/16/20 6:52 AM, shreehari Vaasistha L wrote: > > how can i use model x values as choices for model y ? > > for eg: > class countries(models.Model): > country = models.CharField(max_length=200) > > def __str__(self): > return self.country

Re: user visit count

2020-04-15 Thread shreehari Vaasistha L
ound then filter by user.id , if > found increase number in number_of_visits column by one , if filter not > returning thing then create a new row with object.id and user.id and put > number_of_visits column = 1 > > On Wed, Apr 15, 2020 at 2:29 PM shreehari Vaasistha L > wrote: &

Models as choices

2020-04-15 Thread shreehari Vaasistha L
how can i use model x values as choices for model y ? for eg: class countries(models.Model): country = models.CharField(max_length=200) def __str__(self): return self.country class User(AbstractUser): """User model.""" username = None full_name = models.CharField(_("Full Name"),

Re: user visit count

2020-04-15 Thread shreehari Vaasistha L
column = 1 > > On Wed, Apr 15, 2020 at 2:29 PM shreehari Vaasistha L > wrote: > >> Thank you! >> But can there be any simple implementation as i just want to count number >> of times a user has viewed a post >> >> On Wednesday, April 15, 2020 at 5:48:36

Re: user visit count

2020-04-15 Thread shreehari Vaasistha L
ompatible with Django 3.x. There's a patch that needs to be applied > and a release forthcoming that should take care of it. > > -Tim > > On Wed, Apr 15, 2020, at 4:38 AM, Omkar Parab wrote: > > Django hit count package will help you.. > > On Wed, Apr 15, 2020, 1:09 PM shreehari

Re: user visit count

2020-04-15 Thread shreehari Vaasistha L
ompatible with Django 3.x. There's a patch that needs to be applied > and a release forthcoming that should take care of it. > > -Tim > > On Wed, Apr 15, 2020, at 4:38 AM, Omkar Parab wrote: > > Django hit count package will help you.. > > On Wed, Apr 15, 2020, 1:

user visit count

2020-04-15 Thread shreehari Vaasistha L
how can i get the number of views of an endpoint by a single user. -- 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