The Inspired
cj
Abhie
Like user.objects.get('password')
pratik
Hint: foreignkey(unique=True)
Abhie
Doragonsureiyā
cj
pratik
What is this
pratik
Error
Not working forginekey
Abhie
Like generating OTP without phone or mail
pratik
cj
Like generating OTP without phone or mail
you can generate the random string, send to the user, then save it as password using django's password management, no need to store the plain text anywhere as it will be OTP.
you just need to use a flag somewhere
Abhie
why? seriously, why?
Dude I want to store some random code as password and use the same code for authentication at the same time the user(creator) can see their generated password
cj
Abhie
cj
cj
Abhie
cj
Exclusive
S@m
Hi i am a beginner..can u pls suggest some good resource..
Marc
Marc
Nothing.
Hello, I want projects in Django to become more experienced
N
Guys, do validation methods (i.e. clean_<field>) in forms apply to non required fields if they're empty? Or do they work only if field is not empty?
Mirco
Wan
getimage = Mygalery()
if request.method == "POST":
getimage.image = request.POST.get('document', False)
getimage.pk = None
getimage.id = None
getimage.save()
Wan
i'll post my image from html in database an local, but its not workted
Ibrahim
hello guys i need help in ORM query :
Ibrahim
i have model album has attribute ( is accepted and forign key for Artist )
i want to sort Artists base on the number of accepted albums for him
i overrider the order_by function but it doesn't work
code : https://ideone.com/yzzHMv
Ibrahim
this the query that i want to write in shell to sort the Artists
** Artist.object.order_by("approved_albums")
Adrian
Yo need to use the function annotate, you can see examples in https://docs.djangoproject.com/en/4.1/topics/db/aggregation/
Adrian
You need to add a count field, and then sort the query set with the new count field
Pouria²
hello guys I get a error while creating user in DRF can someone help me?
Pouria²
I encounter thia error :
"EmailField object has no attribute strip"
Pouria²
I searched about it but can't reach the answer
Pouria²
yep
Pouria²
Adrian
Ok, send me a DM
Doragonsureiyā
Ok, send me a DM
Can i send you a private message?
No. We do not provide one-on-one tutoring, hire someone if you need it. Questions are better answered in public so that everyone can learn.
𝙑𝙞𝙯 𝙋𝙖𝙡𝙖𝙨
What do you mean?
𝙑𝙞𝙯 𝙋𝙖𝙡𝙖𝙨
Maxim
Grace
Hi, I have a ModelViewSet whose endpoint should wait for some results from an external api after payment has taken place, My question is how can i use async in DRF?
Abhie
Hi, how can I access urls of multiple apps for single project ?
Doragonsureiyā
Abhie
What are you talking about?
Like when I try to redirect am url from another app it throws an error page not found however atlast it says current path maches the last one
A
I start today django
A
But my first app was getting an error it said path not included but i m included it
A
So anyone here can share a idea
Mr Vgos
Fredrick
Hello guys how can I have a hash key generator for my Django app that whenever any user signs up , gets the key and uses the key as the password for future logins
Ali
Tура
Hi, the post is added automatically, after refreshing the page, I wanted to redirect user the same page
Abhie
Bala
Hello Guys, do djongo will slow down my web application? Because I'm using Django Rest Framework + Mongodb + Djongo, evident that my docker container seeks restart then and there
Doragonsureiyā
Bala
Tура
How to solve location not found 302 error, from redirect
ford