Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create a superuser to access django admin

->python manage.py createsuperuser

You have 1 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): auth.
Run 'python manage.py migrate' to apply them.
Username (leave blank to use 'chatru'): admin
Email address: admin@gmail.com
Password: 
Password (again):
The password is too similar to the username.
This password is too short. It must contain at least 8 characters.
This password is too common.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #superuser #access #django #admin
ADD COMMENT
Topic
Name
9+7 =