Beginner
How can you use Django's built-in admin interface?
Django's admin interface provides a web interface for managing your site's data. To use it:
- Ensure your app is included in
INSTALLED_APPS
insettings.py
. - Run
to create an admin user.python manage.py createsuperuser
- Run your server with
.python manage.py runserver
- Access
/admin/
in your browser and log in with the superuser credentials.
Once logged in, you can manage models registered in the admin interface. For instance, if you have a Blog
model, it will show up in the admin dashboard for easy management.