createsuperuser and Logging In
Create an admin account and access /admin.
createsuperuser and Logging In is a free Django Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Django Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Meet the Admin
Django ships with a full admin site, a ready-made web dashboard for managing your data, so you never have to build a CRUD panel by hand. 🎛️
Who Can Enter
The admin is locked to staff users, so first you need an account. A superuser is an account with full permissions across the whole site.
The Magic Command
You create that account from the terminal with one management command. The createsuperuser command walks you through it step by step.
python manage.py createsuperuserAnswer the Prompts
The command asks for a username, an optional email, and a password. Type them in and your admin account is born.
Hidden Password
When you type the password it stays invisible, so the cursor will not move. That blank screen is normal, your keystrokes are still being read. 🤫
Migrate First
Auth tables must exist before an account can be saved. If you see an error, run migrate once to set up the database.
python manage.py migrateStart the Server
To reach the admin you need the dev server running. Launch it with runserver and keep that terminal open.
python manage.py runserverFind the Door
The admin lives at a fixed URL. Open your browser to the /admin path and Django shows you a clean login screen.
http://127.0.0.1:8000/admin/Log In
Type the same username and password you just created. On success Django drops you into the admin dashboard, your control room for data.
What You See
At first the dashboard only lists Users and Groups. That is expected, you have not registered your own models yet.
Forgot Your Password
Locked out? You can reset any account from the terminal with the changepassword command, no email setup required.
python manage.py changepassword adminQuick Check
Which command creates a full-access admin account?
Recap
You made a superuser, started the server, and signed into /admin. That account is your key to managing data through the dashboard. 🔑
Frequently asked questions
Is the “createsuperuser and Logging In” lesson free?
Yes — the full text of “createsuperuser and Logging In” is free to read here on the web, and the Django Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Django Academy course, upgrade to CoddyKit PRO.
What will I learn in “createsuperuser and Logging In”?
Create an admin account and access /admin. You practise Django Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Django Academy?
No prior experience is required. Django Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “createsuperuser and Logging In” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Django Academy lesson?
Yes. Every Django Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- createsuperuser and Logging In
- Registering Models with admin.site
- Customizing ModelAdmin
- Inlines and Readonly Fields