Skip to content

Instantly share code, notes, and snippets.

@stuartelimu
Last active July 5, 2020 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartelimu/53258c427310bdfce430deac39971e93 to your computer and use it in GitHub Desktop.
Save stuartelimu/53258c427310bdfce430deac39971e93 to your computer and use it in GitHub Desktop.
Easily create a superuser for your django project

Easily create a superuser for your django project using this simple line.

I found this trick on the Quickstart guide from the django-rest-framework docs

$ python manage.py createsuperuser --username admin --email admin@example.com
Password: **********
Password (again): **********
Superuser created successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment