Saturday, April 23, 2016

Django default Admin Username and Password


In earlier versions of Django, when syncdb command is run, it used to ask for super user creation. But the latest versions are not using syncdb command. Here is an article related to it.

We need to create admin user after using python manage.py migrate command. I have checked and found that there are no default users created automatically.


  1. $ python manage.py createsuperuser
  2. Enter your desired username and press enter.
    • Username: admin
  3. You will then be prompted for your desired email address:
    • Email address: admin@example.com
  4. The final step is to enter your password. You will be asked to enter your password twice, the second time as a confirmation of the first.
    • Password: **********
    • Password (again): *********

Superuser created successfully.









If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

No comments:
Write comments