Creating the First Admin Account
$ python manage.py createsuperuser
Username:
Password:
createsuperuser
Creates a superuser.
You can now log in to the admin dashboard on loclhost:8000/admin
,
and find your user account details under Users.
Building the Admin
[courses/admin.py]
from django.contrib import admin
from .models import Course
admin.site.register(Course)
Now, you can find Courses in the admin and can create and manipulate course records.