Django Admin Create Superuser

Before you can login to the admin panel of your Django project, you'll need to create a superuser account. This is done by calling the createsuperuser command using


First, open your terminal and cd to the root of your project where the file is located.


cd ~/myproject


Now run the following command to create a superuser.


python createsuperuser


Follow the instructions provided to create a username and password and keep those logged down somewhere safe.


You can now login to your application by going to /admin.