Doragonsureiyā
Rastislav
What are you talking about?
I want to add product, using/admin and have forgotten my login details. How can I reset the password
Mahi
I have one question how to use authentication module in django
𝙰𝚜𝚑𝚠𝚒𝚗
I have one question how to use authentication module in django
you're just one google search away from the answer!
Tushar
My django project required this want help regarding the dsc token I want access the dsc token from server side and end-user attached the token in there system how can I access plz give solution
cj
I want to add product, using/admin and have forgotten my login details. How can I reset the password
have you read this? https://docs.djangoproject.com/en/5.1/ref/django-admin/#django-admin-changepassword
Админ Queen Shopen
Hi. Who had a problem with user authorization with a custom User model? I can't authorize a regular user, but I can authorize a superuser.
Josue
Does anyone use django + next js?
Charly
Does anyone use django + next js?
Probably. Just ask your real question
Админ Queen Shopen
Use better authorisation
The fact of the matter is that I use it, but for some reason it only works with super users, but not with normal users in the database. At the same time, a custom user, a custom manager and an admin are configured.
Binance
Make sure you have specified the Auth_model as the custom user model you want to use in settings.py
Админ Queen Shopen
I asked a question on Stack Overflow, all the code and questions are there. Would it be convenient to see what the problem is there? https://search.app/PA2i3L1kA45LqQDn7
علی
hello i want startproject django by djando-admin but he send djando-admin is not recognized as the name of a cdlet, function, script file, or...
👑SKB👑
It’s “djangoadmin”
علی
djangoadmin*
It is a typo in this text
Software
Hello can someon help me to learn how can i deploy a django project pls?
Mirco
Hello can someon help me to learn how can i deploy a django project pls?
Documentation > Deploy section start from there
Software
Only i need ask 2 questions the first is 1)What can i do with my static files when deploy the project 2)wich deployment server is the best for django And thanks
cj
Only i need ask 2 questions the first is 1)What can i do with my static files when deploy the project 2)wich deployment server is the best for django And thanks
for question 1), it's already covered in the documentation, have you even read that? for question 2), any VPS
C
Greetings devs. please aside the django official doc. please recommend a good recent source to learn Test driven development in python (Django)
C
fixed
thank you chief
Brian
no one understands what is wrong here? 🥲
you are not utilizing the create_user method within the register view when creating a user. that will mean the password is stored without being hashed. # Use the manager to create the user, which will handle hashing user = User.objects.create_user( username=username, email=email, password=password, phone_number=phone_number ). in the register view
Brian
no one understands what is wrong here? 🥲
Django’s authentication backend cannot verify plain-text passwords, which is why regular users can't log in. Superuser Authentication: My assumption is that you are creating a superuser using Django’s management command createsuperuser, the password is automatically hashed. This allows superusers to authenticate successfully, while regular users (who have plain-text passwords) cannot.
Tushar
Hello, I want to open or use the dsc token in Javascript in html page how can I do plz give solution send the signature in django
Mohammad
Hello, I have a web store with many categories and attributes for products. What is the best method for complex queries in the project?
مريم خالد
does anyone know is there libray help in serving images and files in fastapi without the need of using something like s3 bucket in production since in mount whenever i push every image in static folder become corrupted with every push 🥲😅
Tushar
dsc token ?!
Digital signature token
Mirco
Digital signature token
do u have example of what u have at the moment js side ?
Tushar
do u have example of what u have at the moment js side ?
This digital signature token just like a pendrive and I want access this in the js for making a signature
Mirco
This digital signature token just like a pendrive and I want access this in the js for making a signature
you have to check Django's signer or cryptography python lib I don't know honestly if there's some package out there ready for u
Tushar
you have to check Django's signer or cryptography python lib I don't know honestly if there's some package out there ready for u
I tried in django side but issue was end-user attach this dsc token in their system and I want access in server side how
Mirco
I tried in django side but issue was end-user attach this dsc token in their system and I want access in server side how
your client has to send to backend via header the token u need to parse and validate Django side
Tushar
Client is non-technical
Mirco
Client is non-technical
Then good luck 😅 With client I was meaning the client app, not the user It's common that users are non technical
Админ Queen Shopen
Django’s authentication backend cannot verify plain-text passwords, which is why regular users can't log in. Superuser Authentication: My assumption is that you are creating a superuser using Django’s management command createsuperuser, the password is automatically hashed. This allows superusers to authenticate successfully, while regular users (who have plain-text passwords) cannot.
your guesses turned out to be correct! thank you very much for the right advice 👍 To be honest, I had the same assumptions about password hashing, but I didn’t know how it could be implemented, but thanks to you, I corrected the error that I had been struggling with for a long time.. thanks again for your help! 🥳
Shiva
i am using react js with django when i am uploading a file or deleting a file it is showing not fetch ,axios error any one know about it
Stanislav
django-admin command not works on mac
Stanislav
I did pip3 install Django in env do u have ideas why it's not working?
Stanislav
Stanislav
ManDo
active env
Stanislav
active env
and activate
ManDo
and activate
sorry, my bad. I mean activate env
Vladimir
yes
try django-admin.py
Nobi
Pip install virtualenv Python3 -m virtualenv env Source env/bin activate
Stanislav
what did the error say?
command not found
Nobi
Pip install django Django-admin startproject project name CD projectname Python manage.py startapp aapnema
Nobi
Pip3 install virtualenv
Nobi
Either check your python version after that check your pip list and pip3 list
Nobi
If you don't have pip then first install pip
Stanislav
try django-admin.py
command not found
Nobi
Please used first pip list and give me images
Nobi
Either pip3 list
Nobi
Sorry for that
ManDo
command not found
could you please show your source folder structure?
Nobi
But if you want to start django project.
Nobi
Then I will help you
Nobi
According to me please run command
Nobi
First you have python setup in your system and then Run If you have Mac or Ubuntu Check python version Check pip. List If all ok Then go to this way
奈姆
alternative command: python3 -m django
Nobi
Pip install virtualenv Pythons3 - m virtualenv env Source env/bin activate Pip install.djnago django-admin startproject projectname CD project name Python manage.py startapp aapname Python manage.py createsuperuser username Pythone manage.py runserver And now go the browse and run and login 😊