Re: DRF simplejwt refresh access_token stored in httponlycookies

2021-05-07 Thread Michael Thomas
Generally speaking, storing a JWT token (especially a refresh token) as a cookie isn't the best thing to do, as it means you're potentially "leaking" the token in every request where that cookie is valid, rather than intentionally sending it as a header only when you intend to (among other issues).

DRF simplejwt refresh access_token stored in httponlycookies

2021-05-07 Thread narendra...@gmail.com
i'm using django as my backend and react as frontend. i'm using simplejwt for authentication. i can get access and refresh token and has stored in httponly cookies. now i'm not able to refresh a token. can somebody help me out? -- You received this message because you are subscribed to the Goo

Re: cannot assign to literal

2021-05-07 Thread Lipede Tope
Try data['form'] =Carossform() On Fri, May 7, 2021, 6:33 PM Rodrigo Alves wrote: > Boa tarde amigos! > > alguém pode me ajudar? > > esta aparecendo este erro! > > cannot assign to literal > > o meu codigo é este: > > def form(request): > data = {} > data = ['form'] = CarrosForm() > r

Re: List Products of one Category

2021-05-07 Thread GWISU MANYANDA
Great help Shailesh! On Fri, 07 May 2021, 16:47 Shailesh Yadav, wrote: > In views use like this. > > def allproduct(request): > allproduct = None > allcategorie = Category.objects.all(); > categoryID = request.GET.get('category') > print('Category ID is : ', categoryID) ##check if it is showing

Re: signup error

2021-05-07 Thread EVELYNE MBAU
Thanks,guy On Fri, 7 May 2021 at 06:43, Omkar Parab wrote: > You need to import SignUpForm, in the views.py file. > Post the screenshot of the error. > > On Fri, May 7, 2021, 6:48 PM EVELYNE MBAU wrote: > >> Hello, how do i solve name 'SignUpForm' is not defined >> >> -- >> You received this m

cannot assign to literal

2021-05-07 Thread Rodrigo Alves
Boa tarde amigos! alguém pode me ajudar? esta aparecendo este erro! cannot assign to literal o meu codigo é este: def form(request): data = {} data = ['form'] = CarrosForm() return render(request, 'form.html', data) -- You received this message because you are subscribed to the G

Re: 'Question' object has no attribute 'choice_text'

2021-05-07 Thread Daniel Hepper
Hi Rishi, please share your models.py, otherwise it will be difficult to help you. Cheers, Daniel Rishipal Singh schrieb am Fr. 7. Mai 2021 um 15:19: > Hi Daniel, > I am working on same tutorial and stuck at Tutorial # 4.. > > I have checked your code too.. > Still getting below error > > 'Que

Re: List Products of one Category

2021-05-07 Thread Shailesh Yadav
In views use like this. def allproduct(request): allproduct = None allcategorie = Category.objects.all(); categoryID = request.GET.get('category') print('Category ID is : ', categoryID) ##check if it is showing correct if categoryID: allproduct = Product.objects.filter(category=categoryID) else: a

Re: List Products of one Category

2021-05-07 Thread Shailesh Yadav
What Error are you getting? Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin] On Fri, May 7, 2021 at 6:48 PM GWISU MANYANDA wrote: > Hi Every one! I 'm looking for help. > I'm working with Ecommerce I have a few categori

Re: signup error

2021-05-07 Thread Omkar Parab
You need to import SignUpForm, in the views.py file. Post the screenshot of the error. On Fri, May 7, 2021, 6:48 PM EVELYNE MBAU wrote: > Hello, how do i solve name 'SignUpForm' is not defined > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

Re: signup error

2021-05-07 Thread Philip Mutua
Probably you forgot to import the form in your views. Check your imports. Regards On Fri, 7 May 2021, 16:19 EVELYNE MBAU, wrote: > Hello, how do i solve name 'SignUpForm' is not defined > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. >

List Products of one Category

2021-05-07 Thread GWISU MANYANDA
Hi Every one! I 'm looking for help. I'm working with Ecommerce I have a few categories and I would like to list the products of one Category not List of products of each Categories *My model* *class Category*(models.Model): name = models.CharField(max_length=200) def __str__(self): return self.

Re: 'Question' object has no attribute 'choice_text'

2021-05-07 Thread Rishipal Singh
Hi Daniel, I am working on same tutorial and stuck at Tutorial # 4.. I have checked your code too.. Still getting below error 'Question' object has no attribute 'choice_set' selected_choice = question.choice_set.get(pk=request.POST['choice']) Can you advice Regards Rishi On Monday, 25 Decembe

signup error

2021-05-07 Thread EVELYNE MBAU
Hello, how do i solve name 'SignUpForm' is not defined -- 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 view this di

Re: Deploying Django Project on Kubernetes

2021-05-07 Thread Mohit Gupta
Online training on python and django for beginners. Interested people contact on me On Fri, 7 May, 2021, 8:56 AM parmeshwar deharkar, < parmeshwardehar...@gmail.com> wrote: > yes we guide you and i will solve your problem. tell me your requirement > now > > On Thu, May 6, 2021 at 7:11 PM 'Muhamma

Re: [django-announce] Django security releases issued: 3.2.1, 3.1.9 and 2.2.21

2021-05-07 Thread Markus Holtermann
Hi all, We took an defense-in-depth approach which seemed fined with our test suite. But it turns out, there are cases that weren't covered by tests which caused a regression in a few specific cases. This is tracked in https://code.djangoproject.com/ticket/32718 Cheers, Markus On Fri, May 7,

Re: [django-announce] Django security releases issued: 3.2.1, 3.1.9 and 2.2.21

2021-05-07 Thread Ned Batchelder
It seems to me that the release note for 2.2.21 is incomplete. It says, "Specifically, empty file names and paths with dot segments will be rejected." But it's stricter than that: any path component causes the path to be rejected: > if name != os.path.basename(name): >     raise Suspiciou

Re: why i am getting these error i dont know plz solve...

2021-05-07 Thread Kasper Laudrup
On 07/05/2021 10.23, Phani Deep wrote: > > NoReverseMatch > > > Reverse for 'album_detail' with arguments '('', )' not found. > 1 pattern(s) tried: ['@(?P[^/]+)/album/(?P[^/]+)/$'] > This will guide you towards a solution: https://betterprogramming.pub/how-to-ask-questions-about-programming-d

Re: Getting packages errors always..

2021-05-07 Thread Kasper Laudrup
On 07/05/2021 10.13, Phani Deep wrote: > hii actually i am learning django projects from some source codes of > somebody  which i saw in a  website..when i am running their projects i > am getting the output as same as they show the project..but when i > writing those projects by seeing them with c

Re: Am I being hacked?

2021-05-07 Thread Mike Dewhirst
Thanks Stephen , I'll do some digging. Mike--(Unsigned mail from my phone) Original message From: "Stephen J. Butler" Date: 7/5/21 18:06 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Am I being hacked? Unlikely. The local connection is in a high port range and th

why i am getting these error i dont know plz solve...

2021-05-07 Thread Phani Deep
NoReverseMatch Reverse for 'album_detail' with arguments '('', )' not found. 1 pattern(s) tried: ['@(?P[^/]+)/album/(?P[^/]+)/$'] -- 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,

Re: Getting packages errors always..

2021-05-07 Thread Phani Deep
hii actually i am learning django projects from some source codes of somebody which i saw in a website..when i am running their projects i am getting the output as same as they show the project..but when i writing those projects by seeing them with changing some names i am not getting the output

Re: Am I being hacked?

2021-05-07 Thread Stephen J. Butler
Unlikely. The local connection is in a high port range and the remote connection's port is 443, which indicates your machine made an outbound HTTPS connection to that IP. Does your code make any HTTP requests? Does it use anything like OpenID Connect for auth? Do you have SSL certs it is checking t

Am I being hacked?

2021-05-07 Thread Mike Dewhirst
After testing some code in Django 3.1 on Windows 10 with Python 3.8.3 I got the following report on exiting ... sys:1: ResourceWarning: unclosed family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.0.63', 64097), raddr=('34.241.162.61', 443)> laddr is my laptop