How to create a super user in Django (+ Heroku)

If you’ve just started a new project you need to have run the migrations with:

python migrate

Then create the super user with:

python createsuperuser

You’ll be asked a series of questions to create a Django user, note this is a user that can log into the admin panel, not a website user.

Creating a super user on Heroku

heroku run python createsuperuser