Azad Rasul




8- Introducing the Django Admin

Azad Rasul's photo
Azad Rasul
·May 8, 2022·

1 min read

Play this article

To create an admin user, run the following command:

py createsuperuser

Enter any username, for example Azad and press enter. Then enter your email address, for example: Then create a password. You should see:

Superuser created successfully.

Now, open a web browser and go to You should see the admin’s login screen. Try logging in with the superuser account you created in the previous step.

To display poll app on the admin index page, open the polls/ file, and edit it to look like this:

from django.contrib import admin

from .models import Question

If you like the content, please SUBSCRIBE to my channel for the future content

Share this