Today’s Offer Enroll today and get access to premium content.
App Store Google Play
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:

  1. Ensure your app is included in INSTALLED_APPS in settings.py.
  2. Run
    python manage.py createsuperuser
    to create an admin user.
  3. Run your server with
    python manage.py runserver
    .
  4. 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.