Anonymous
How long does it take to fully understand django, if u already know html,css,js & python?
m
How long does it take to fully understand django, if u already know html,css,js & python?
Django huge subject based on ur project u will get more knowledge
Someone
Hi, am trying to make csrf exempt for password reset default view.. I have override the dispatch method.. But it's still giving, csrf verification failed 403 error
Someone
Any idea how I can fix that?
Someone
I am trying to fix this for now like 7 hours, if anyone have any idea plz help
Someone
class PasswordResetViewWithoutCSRF(django_views.PasswordResetView): @method_decorator(csrf_exempt) def dispatch(self, *args, **kwargs): return super(PasswordResetViewWithoutCSRF, self).dispatch(*args, **kwargs)
Someone
I tried this, also have added csrf_expempt in url before calling the view, that also not worked
Anonymous
Without CSRF ... You have to use token method while authentication
Anonymous
USE Token
Anonymous
Is it rest API?
Someone
Thats Ok, Thanks
VY.sh
Someone
@hashlash Ravindra I have just created a new view with csrf exempt, it just took 15 min. i should have did this long back, instead of spending time to fix for last 7 hours. :(
Someone
Is it rest API?
I was trying to call the same url as api by passing form data from angular app
Someone
Thankss @hashlash Ravindra
The mint of Linux **
The mint of Linux **
I can...plz show me html
The mint of Linux **
Can i do multiple models in a same view
Yes except image and filefield
Someone
What u want to do?
I want to exempt csrf from password reset class based default view
Someone
The mint of Linux **
The mint of Linux **
Someone
Using a decorator...or just token ?
Using decorator was not working.. But now I created a new view for it
Someone
It should work then 🙄🙄
It should bro, but it was not working
The mint of Linux **
Can I see ?
Someone
Can I see ?
Which one bro
Mirco
VY.sh
The mint of Linux **
u serious ? 😁
Yes!! Why should I joke here
The mint of Linux **
Look I have to trail and error
The mint of Linux **
Now my turn...can anyone know how to submit XML sitemap...or rather to say..where to put it in code
Dixit
No😌
Bro... Try creating a method in model.py
Dixit
That might work
Dixit
Id = Models.charField(unique=True); Then DON'T SAVE THAT DIRECTLY. (Form.save) Rather, Make generateID() in views.py And insert that field with custom query for example : Table.objects.create(id=generateID, ect=ect);
Mirco
Yes!! Why should I joke here
if you are on laptop just right click on the message and click on Edit if you are on phone, one tap on your message and click on Edit
VY.sh
Dmytro
Hello everyone, can someone take a look at my project, I can't connect pagination, can you tell me? https://github.com/yarosh01/littleshop
Pandu
How can we Handel sessions in Django?
Doragonsureiyā
How can we Handel sessions in Django?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Gio
hello, does anyone know how to get the raw body of a request in django rest? I need to verify the signature in this way: t, v1 = [value.split('=')[1] for value in request.headers['Signature'].split(',')] computed_digest = hmac.new(secret.encode(), (t + '.' + request.body).encode(), 'sha256').hexdigest() problem is that this gives me: can only concatenate str (not "bytes") to str since request.body is not a raw json string
AnomaLee
Can I use context_object_name on the form
Akil
can help me to create multiple tables using single model class
Akil
I need to create 50 tables with same fields ... how can I do this dynamically
Akil
😢
Akil
Do anyone idea about this
Anonymous
Please I have a question
Anonymous
When I use bootstrap together with my templates it doesn't render. It doesn't use use the bootstrap style but when I create a normal html file and place the link of bootstrap in it, it renders out fine. Please I'm using bootstrap locally
Anonymous
It worked perfectly
The mint of Linux **
Who have hosted Django website
The mint of Linux **
Please tell me where to add .XML site map to get page indexed
Mirco
Bro I'm talking about.xml site map
https://adamj.eu/tech/2020/06/28/how-to-add-a-well-known-url-to-your-django-site/ Same strategy
Akhil
Akhil
yes
Sorry but please can u explain me I just beginner
Doragonsureiyā
Sorry but please can u explain me I just beginner
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Akhil
There are also some I can't understand like &,&amp
Akhil
Is there any way to learn
cj
There are also some I can't understand like &,&amp
then you have to read about HTML first 🤷🏻‍♂️
cj
Is there any way to learn
read about HTML on MDN