Django 6 cheatsheet

Django 6: Users and shell

3 common Django 6 tasks.

Create an admin user

Create a superuser who can sign in to /admin/.

python manage.py createsuperuser

Change a user's password

Set a new password for a user, prompting for it.

python manage.py changepassword admin

Open the Django shell

Start a Python shell with your project loaded.

python manage.py shell

Was this page helpful?