Rutya
How create country and city api in djang rest framework
Rutya
Any tell me plz
Charly
Rutya
All City and country fetch
Charly
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
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?
Charly
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
Anonymous
Watching for file changes with StatReloader
Performing system checks...
what this mistake
Doragonsureiyā
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Anonymous
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 !??
Yusif
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.
....
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@*
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"))),
    )
Charly
K
Can any one help me to set session storage in django
Charly
Charly
K
Can you please help me
Charly
and have you checked the documentationr egarding that?
K
Charly
Charly
and I don't have any context
Rutya
How create django change password API with token
Rutya
Using postman response filed
Charly
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
Anonymous
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...
Omar
Seema
Omar
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
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?
Meme
Андрей
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?
Anonymous
Андрей
Андрей
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
Parshad