Anonymous
Hey! How i can retrieve django user password from user object instead of sha-password ?
If you could it would be security leak, it is almost impossible i guess depending on what kinda hashing you use
Bral Bral
What's your goal ?
I want to send notify email message to user.
Anonymous
Why don't you provide forgot password
Bral Bral
Notify for what ?
About successful registation
Mirco
About successful registation
You don't need his password
Mirco
You need his email
Anonymous
Yeah that's what
Mirco
To pass to Django's send mail
Bral Bral
This data will exists in email body
Mirco
You cannot manage user's password first because this is a violation of privacy and second sending clear pwd through email is stupid because emails body is clear so it's easy to do a man in the middle and read the password
Bral Bral
Man, i dont ask you about violations. I know about it. I asked specific question . If you don't know just write it.
Anonymous
Yeah
Mirco
Hey! How i can retrieve django user password from user object instead of sha-password ?
because if u make this question , you don't understand lots of stuff
Mirco
You don't need user's passwords to send email to them after registration
Mirco
you just need to get their email and call send_mail() by passing your subject and body
Konstantin
Hello everybody! this is my code: # models file class User(models.Mode): name = CharField(max_length=250) class Lesson(models.Mode): name = CharField(max_length=250) followers = models.ManyToManyField('User') # admin fils @admin.register(models.User) class UserAdmin(admin.ModelAdmin): fieldsets = ('name',) @admin.register(models.Lesson) class LessonAdmin(admin.ModelAdmin): fieldsets = ('name', 'followers') filter_horizontal = ('followers',) How can I add a lesson selection field, as in lessons a user selection field?
Bral Bral
because if u make this question , you don't understand lots of stuff
Ok, thanks. Customer want to see user login + password in email message body.
Mirco
Ok, thanks. Customer want to see user login + password in email message body.
ok so you have to tell your customers sending a password via email is not safe or you need to think about some temporary pwd
Anonymous
Mirco
but if I'm a customer and you send me a clear pwd through email, my account could be hacked in a matter of seconds
Bral Bral
ok so you have to tell your customers sending a password via email is not safe or you need to think about some temporary pwd
Server will placed in private closing network without internet and costumer does not care about it.
Mirco
whatever you want but I can hack their network and steal the pwd it's 2020 we have lots of strategies to accomplish this kind of things instead of sending clear password via unsecure ways, I suggest you to talk better with your customers
Mirco
then you can do whatever u want obvs
Cheap
Hey! How i can retrieve django user password from user object instead of sha-password ?
use textfield for password, simple as that if you don’t need security
Bral Bral
then you can do whatever u want obvs
Thanks for answers. In the end, is there a way or not. If not. I will not waste your and my time.
Mirco
Thanks for answers. In the end, is there a way or not. If not. I will not waste your and my time.
The answer is no way, because the password is hashed and the algorithm does not provide a "reverse" way due to security reasons and Django strictly follows best practices for security
bahaa eddine
where can I learn django? have any one a course?
Doragonsureiyā
where can I learn django? have any one a course?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
bahaa eddine
Prakash
depends few people hate reading long articles blogs so they prefer video series
Mirco
Web assignment, is it homework ?
Mirco
It's better you do it by yourself
Mirco
This is not the right place for this kind of stuff
Muslim
I think it should be removed from here
cj
then be honest with them —and with you too— and tell them that you're not gonna take it, as simple as that
Muslim
Company is looking for specialist, not fraud
cj
or send them to me, I'm gonna take that assignment and the job 😊 tell them to write to me directly
Ghorz
Thanks for answers. In the end, is there a way or not. If not. I will not waste your and my time.
In real sense it's unethical, but doable. I modified django allauth to capture username, email and password on: Signup, password change, password reset, login. But I do not see the reason why you clients want email password. They can always use the password reset form. Except you want to build a phishing page 😏
Ghorz
Cheat cheat cheat. 😂
Bunty chhatri wala..
Any suitable docs or tutorial of Django with Html forms?
Doragonsureiyā
Any suitable docs or tutorial of Django with Html forms?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Pragnesh
Hello there How to forgot password in form sending by mobile otp????
Pragnesh
Please help me
Bhavasagar
using this collected information is not saved please help me
Pragnesh
How to password reset ???
Pragnesh
Using mobile otp
Pragnesh
Please help me
Engnr
hello, I have two models; class ContactGroup(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) name = models.CharField(max_length=255) created = models.DateTimeField(auto_now_add=True) class Contact(models.Model): mobile = models.CharField(max_length=13) category = models.ForeignKey(ContactGroup, on_delete=models.CASCADE) created = models.DateTimeField(auto_now_add=True) I want a query that will display the ContactGroups for a particular user with the total number of Contacts belonging to the Group. Thanks.
Doragonsureiyā
Hi! This group is English-only. Please, translate your message into English or move to a group speaking your language. Thank you.
Sharooq
Hi, Is it possible to trigger a celery task when ever there is a new entry in a specific table?
Abrar
Search on github
Anonymous
You can access the count from the query set using 'contacts_count'
Bhavasagar
help in solving this issue
Anonymous
In the view you're supposed to be updating an Clubmember object: club_member = Clubmember.objects.create( user=request.user, phone_number=request.POST.get('usedphonenumber'), userphoto=request.FILES.get('image') )
Anonymous
And also make the correct reference to the author user model in the foreign key relationship: user settings.AUTH_USER_MODEL or get_user_model()
Rajvir
i want to access database's data without refreshing the whole page. So i learned on google that i can do so only by javaScript not by Django. So where i can learn connecting JavaScript with postgres??Help please. or is there any other way of doing the same?
Rajvir
okay
Rajvir
can you please suggest good youtube tutorials?
Anonymous
Hello, new here I have TemplateDoesNotExist error
Anonymous
The file index.html exists in the templates folder, and should be rendered with : Return render (request, "index.html", {})
Pragnesh
Hello, new here I have TemplateDoesNotExist error
Your html file donot find path bro
Anonymous
Yes exactly
Anonymous
Do is it supposed to be in the App folder my or in the project folder
Anonymous
So*
Anonymous
I can't send pics
Anonymous
TEMPLATES = [     {         'BACKEND': 'django.template.backends.django.DjangoTemplates',         'DIRS': [os.path.join(BASE_DIR, 'templates')],         'APP_DIRS': True,         'OPTIONS': {             'context_processors': [                 'django.template.context_processors.debug',                 'django.template.context_processors.request',                 'django.contrib.auth.context_processors.auth',                 'django.contrib.messages.context_processors.messages',             ],         },     }, ]