Muflone
also remove the slash from the url
Алексей
Muflone
Keep equals what?
the url specification in urls.py and the url used in your template
Muflone
apart this why is your logout form pointing to login ?
Afshin👀
official docs and common sense
how can i install and import this
Maxim
how can i install and import this
install and import what?
Алексей
apart this why is your logout form pointing to login ?
I dont really understand what you mean
Afshin👀
Afshin👀
i can not find
Maxim
the packages
i didn't name anything that could be installed or imported
Afshin👀
oh sorry i think so the official is a package
Afshin👀
did you mean docs of django or somethink else
Afshin👀
i am new in django
Afshin👀
ok thanks
Maxim
Uzumaki Nãruto rule #10 violation or, at least, totally offtopic read only 1 week
Anonymous
django.core.exceptions.ImproperlyConfigured: allauth.account.middleware.AccountMiddleware must be added to settings.MIDDLEWARE
Muflone
How to repair it?
Have you already tried what you written before?
Anonymous
Muflone
I wrote this for the first time
The message you write just before has a potential solution
Anurag K
Anybody help me for google authentication with custom user model In my user model there is no username field When i try for signin using google it shows username filed not exist
ARCEE
https://stackoverflow.com/questions/77814054/i-m-not-able-to-send-json-data-to-django-views-py-im-trying-ajax-for-this-but
ARCEE
can anyone solve this pls
Assadh
Hello everyone, I want help in creating a custom primary key in model, but I cannot. Every time Django creates the default key(id).
ali
Hello friends, Do you know how to make a model inline again in the admin? I used django-nested-inline but it didn't work
Assadh
class x(models.Model): x_id = models.IntegerField(primary_key=True), name = models.TextField() def str(self): return self.x_id
Mai
class x(models.Model): x_id = models.IntegerField(primary_key=True), name = models.TextField() def str(self): return self.x_id
Try this class x(models.Model): x_id = models.AutoField(primary_key=True) name = models.TextField() def str(self): return self.x_id
Stevo
How to make a download button to download something from your view
Mai
u should read about FileResponse
Stevo
Ok
Stevo
Thanks
Patricia
Hi everyone. I'd like to ask what's the right way to deal with something: I know that Django should redirect requests made to a url without a trailing slash, since APPEND_SLASH=True is default. However, I found that it depends on the client making the request and on the type of request (I was having problems with postman handling GET perfectly but having trouble with DELETE, unless the url had a trailing slash). I solved the issue by using re_path to make the slash optional. But I wonder if that's the way to go. Are there other options?
Naughty
How to deploy DRF and react freely
KingFx
How to deploy DRF and react freely
github for react pythonanywhere.com for django
Shoxmalik
Potential causes of 'Not Found: /static/img/carousel-1.jpg' in django with docker
renji
app.models.complaints.DoesNotExist: complaints matching query does not exist. anyone can help
Zokirshoh
Hi every one, i need some help, https://dpaste.org/3VPwJ , here it is wrting my object datas to excel file perfectly but i need to wrting the name of the object if it is foreign_key or M2M, thank you in advance
Kesav
How to implement mobile OTP authentication login forms in django
Prakriti
Does anyone know how to solve the favicon error that shows while running django project?
John
Does anyone know about how to add extra fields in default User module
John
J
Hi guys I need a little assistance with a web scraping inside django
Behzad
how connect django rest with nextjs?
Maxim
@SAWRIYO crossposting read only 24 hours both group
ㅤMeraj
Does anyone know about how to add extra fields in default User module
Hi , you can use AbstractUser or CustomUserModel Search these and read documents bro
John
Why we use rest_framwork in django
ruthless
Application programming interface
Vishnu
Can someone suggest me best authentication for django rest framework APIs. Am not using any frontend libraries instead am using django templates and javascripts for additional functionalities. Session authentication or jwt authentication is best? Many say jwt is insecure because of its caching. Please suggest something without any extra library
Maxim
New Thinking rule #10 violation read only 1 week
Артём
I have a Product model. Every model’s supposed to have an image. What’s the best way of storing images path, eitherArrayField or foreingkey ?
Maxim
@fy_ziii crossposting read only 24 hours both groups
DeathLikeSilence
hello everyone, i have a view class that users can register and their data get saved in sessions. In another class named OtpCode I've used this session, after receiving Otp code the session data will get saved to the database. The problem here is that the response I return to the front-end, OtpCode is visible and okay but the session_id is null. front-end is with react and back is with django . Should I change or add something in setting.py?
Vaibhav
Can any one help me to learn django framework?
Maxim
Can any one help me to learn django framework?
Don't ask meta questions like: - Any user of $x here? - Anyone used technology $y? - Hello, I need help on $z! Just ask directly! The better you are at explaining the problem, the more likely you are to get help. If you don't know what that means, read Asking Smart Questions.
ㅤMeraj
Tq for info bro..
No prob ❤️
Professional
I am getting page not found in Django can any one help me
Muflone
I am getting page not found in Django can any one help me
The only reason is you're referring to an inexistent URL
King David
Django model save explain
Shoxmalik
Essentially , Django talks to db with ORM ( which is python syntax , for-example , new = School.objects.create( name =' Axi ') , but it does not get saved to DB unless you type new.save() . Then there will be school with the name of 'Axi' in db
Paridhi
Hi all I am working in a support project now having 2 years of exp but wanted to switch my career to django developer. Can anyone suggest me what are the skills I need to learn so that I can switch as a 2 year exp person as django developer