Django 1.11 : Create super user for Admin back office
In this post we will give you information about Django 1.11 : Create super user for Admin back office. Hear we will give you detail about Django 1.11 : Create super user for Admin back officeAnd how to use it also give you demo for it if it is necessary.
After you successfully created your first project with Django 1.11 ,created an app and migrated your SQlite database .It’s time to access the admin interface or back office generated automatically by Django which you can use to create ,delete ,edit and list your database tables data .
You can visit the admin interface from http://localhost:8200/admin
You’ll be presented with a form to enter your username and password credentials .If you enter any values you’llget a message :
Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive.
Since you have no staff user created yet but don’t worry this can be fixed with one command .
Head over to your terminal ane run :
python manage.py createsuperuser
You’ll be prompted for a username and a password (twice) ,enter them and hit Enter .
Next run your local server again :
python manage.py runserver
Then visit your admin interface http://localhost:8200/admin and enter your credentials then hit Login button .
You should be successfully logged in .
Hope this code and post will helped you for implement Django 1.11 : Create super user for Admin back office. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs