Python - create superuser for Django administration

0 points
Created by:

In this article, we would like to show you how to create superuser for Django administration.

1. Open the Command Prompt, change directory to your Django project and activate the virtual environment,

2. change directory to your Django app,

3. create the database which will store the superuser with the following command:

python migrate

4. create superuser using:

python createsuperuser

5. fill in the information such as username, email and password


You may receive a warning that the password is too common. Change the password or bypass validation by pressing y.

6. Now you can login to your superuser by adding /admin at the end of the URL. 

Python - Django admin site
Python - Django admin site
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂