Saturday, May 5, 2012

[Django] Create a Super User manually

Whenever the database was first sync, it will prompt if you want to create a super user but what if somewhere in the future you want to create another super user without creating one from the admin view?

Using the terminal, go to your project folder then use the following code:
python manage.py createsuperuser

After that code, you will be prompted to enter your username, email and password.

You now have created a super user account manually and using the terminal!

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...