Django Tutorial - Django Admin
Updated at 2018-11-23 16:23
Add the following to djangor/admin.py
:
# ...
admin.site.site_title = 'Admin Panel'
admin.site.site_header = 'Admin Panel'
admin.site.index_title = 'Administration'
# ...
Edit polls/admin.py
: And now your questions are editable by website admins.
from django.contrib import admin
from .models import Question
admin.site.register(Question)
Django admin features aren't intended to be used by website visitors. It’s for site managers to configure users and content.
python manage.py createsuperuser
# follow the instructions
python manage.py runserver
# navigate to localhost:8000/admin and login