Rutya
How create country and city api in djang rest framework
Rutya
Any tell me plz
Rutya
All City and country fetch
Rutya
All over city and country fetch
Anonymous
[27/Feb/2023 11:22:35] "GET /accounts/login/?next=/home/ HTTP/1.1" 404 3946 how can I remove parametr by home address?
Naggafin
[27/Feb/2023 11:22:35] "GET /accounts/login/?next=/home/ HTTP/1.1" 404 3946 how can I remove parametr by home address?
that GET param is used by django's auth views to know where to send you in the get_success_url() method
Naggafin
in other words, how exactly would it know which page to redirect you to (besides the root URL) after a login if you didn't have that feature?
Anonymous
what this mistake ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) File "D:\django\11-dars\evn\lib\site-packages\django\conf\urls\static.py", line 22, in static raise ImproperlyConfigured("Empty static prefix not permitted") django.core.exceptions.ImproperlyConfigured: Empty static prefix not permitted
Anonymous
alo
𝚅'J
How to solve django path problem anyone free so pls suggest
Yusif
𝚅'J
Django admin is not recognized
Maxim
alo
it's a telegram, not a phone anyway, please refrain from useless messages
Anonymous
Anonymous
Watching for file changes with StatReloader Performing system checks... what this mistake
Anonymous
Watching for file changes with StatReloader Performing system checks... what this mistake
It's not a mistake it's a watch for certain file changes so it can be applied to your website dynamically
Doragonsureiyā
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Shrey
how do we use any of the following functions to send an email via django: from django.core.mail import send_mail from django.core import mail I have added the following in my project's settings.py file: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = '' EMAIL_HOST_PASSWORD = '' DEFAULT_FROM_USER = '' Is there anything we need to do from gmail POV ? I read that the "Less Secure Apps" settings has been depricated for gmail and we need to enable 2 Step Verification. Have done that too !! Can someone guide me from here !??
talha
I am able to return string representation of model fields without str funtion def __str__(self): return self.title when registering the model to the admin like this @admin.register(Post) class Postt(admin.ModelAdmin): list_display = [i.name for i in Post._meta.get_fields() if i.name != "id"] should I stop to create the str function, is this okay?
Aza
hello, where i can get practice tasks for study python django?
Yaroslav
hello could anyone help? what is considered as the best way to set only wanted endpoints in DRF router from specified viewset? I'm using djoser view set and need only some of its functions
Oxytocin
Hi How can I get ancestors of an instance of self reference model? I searched and found django mptt, but I dont know if I can use it for existing model without deleting db and migrate everithing again.
Forever
Hi How can I get ancestors of an instance of self reference model? I searched and found django mptt, but I dont know if I can use it for existing model without deleting db and migrate everithing again.
you can use the get_ancestors() method provided by the django treebeard package. This package provides an implementation of the Modified Preorder Tree Traversal algorithm for hierarchical data structures.
....
What is rest API
Charly
What is rest API
That's a question more suited for google as is not specific to Django
Damascene Ak@*
I've been trying to use django-allauth to login to enable Telegram login to my django site but it's not working from many browser except Firefox on desktop
Damascene Ak@*
Would appreciate any help. after confirmation I'm stuck on the login page for most of the browsers I've test
Bhumin
Hey there, How to solve error : Field 'gender' expected number but got 'male' Models .py :  gender = models.IntegerField(choices=((1, ("Male")),                                         (2, ("Female"))),     )
K
Can any one help me to set session storage in django
Charly
Can any one help me to set session storage in django
What have you tried and where are you stuck?
K
What have you tried and where are you stuck?
I don't know completely about session storage but I want to store entire html page
Charly
I don't know completely about session storage but I want to store entire html page
Session storgare is not supposed to bo for things like that
K
Can you please help me
Charly
and have you checked the documentationr egarding that?
Anonymous
Can any one help me to set session storage in django
Django documentation is the best place to learn about session. Check it up you won't find anything better anywhere else
K
Session storgare is not supposed to bo for things like that
Ok for that what we need to do for that requirement
Charly
Ok for that what we need to do for that requirement
I don't know whats the full requirement
Charly
and I don't have any context
Rutya
How create django change password API with token
Charly
How create django change password API with token
explain it better why do you want to change passwords if you are using api tokens?
Rutya
Using postman response filed
Rutya
Currents password and password and confirm password this filed using
Rutya
I wanted to api but not working
Rutya
pls tell me how to create
Rutya
This filed required in postman
Rutya
Using
LCZ80
Hi there. How do you handle cookies consent? I tried with django-cookie-consent but I am quite lost. Do you think is it an overkill? Otherwise I would handle it straight with some JS from the template, and request.
Rutya
Plz tell me how to create change password API in django
Rutya
With using token
Anonymous
With using token
Please ask questions in the group don't send unsolicited PM's
Seema
Hii I'm new to django, facing Server Error (500) using locahost MySQL workbench... Debug=False bcz site is live. I want to do some changes locally. Please help me for this issue...
Doragonsureiyā
Hii I'm new to django, facing Server Error (500) using locahost MySQL workbench... Debug=False bcz site is live. I want to do some changes locally. Please help me for this issue...
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Seema
set BEBUG=True and you'll see what causes the error
I want to run the website using locahost that's why I set it Debug = False.
Omar
I want to run the website using locahost that's why I set it Debug = False.
I know that you're running on localhost but to fix the Server error, set DEBUG=True so that you can see what's causing the error. If not you can't fix the error.
Omar
If I do Debug=True then website is working properly
What exactly are you trying to do? How did you connect your database?
Anonymous
how to create a monthly total payment, here the user writes a price in each post, and at the end of the month, the total price comes out
Anonymous
If I do Debug=True then website is working properly
There are other configurations you need to do in your settings after setting Debug = False. Maybe you're getting the error from there Did you set up your allowed host??
Samuell
Hello everyone, good night, how are you? I have a question, if anyone can help me. I have a model where only one class should be saved in a different database than the default one. Is it possible to do that?
Андрей
Hello everyone I have such a question - on many sites, instead of a login, they enter a phone number and then enter a confirmation code. How is the password field implemented here - is it removed or is it generated automatically somehow? If, for example, you remove the password from the required fields, then how to enter the admin panel? How to do it correctly? Or where can I read/watch it?
Андрей
django jwt authentication Check it up
Thanks, I'll check it out
Андрей
using the jwt-token, you always need to use the username and password fields, is it possible to remove or hide the password field at the time of user authorization and registration?
Zen
how not to get confused with relative and absolute path? Tag me in the answer
Parshad
Any one here who have use push notification with firebase ?
Doragonsureiyā
Any one here who have use push notification with firebase ?
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. Asking smart questions