The Django admin interface
This is one of the killer features of Django: it creates a web-based administrative panel for you. This means you don’t have to build an interface for dealing with users, handling logins, or creating screens for simple data entry into your model structure. The first thing every app needs is an administrative user or superuser. It is common for applications to have role-based user access, and the super-user is the user who can do everything, including adding new users. This kind of thing might take a developer two or three days to get working, but with Django, it’s already done.
Creating a superuser and logging in
Before users, logins, or any of the other goodies we’re talking about here work, you need to apply a migration that was generated for you when you created the project.
Let’s head back to our manage.py
task panel and type this command:
migrate
Just like that, by itself. This adds all the base tables for the...