Django admin server

 Description

We are creating the super user in django app. This will give us an elevated access in django app


Django Admin


(dj-env) [dj_adm@localhost mysite]$ python manage.py createsuperuser
Username (leave blank to use 'dj_adm'): admin
Email address: vel-----@gmail.com
Password:
Password (again):
Superuser created successfully.


(1045, "Access denied for user 'dj_adm'@'localhost' (using password: NO)")

 


 

We added the password directly to the settings.py and removed the dependency of my.cnf solved the problem

possible other solutions


ALTER USER 'dj_adm'@'localhost' IDENTIFIED WITH mysql_native_password BY '********';  
FLUSH PRIVILEGES;



 

Comments

Popular posts from this blog

Django Server setup with Apache with mod_wsgi in Centos 9

Mysql Installation on CentOS 9

Install mysql8 on centOS 9 and integrating with Django