1, create a super administrator
python manage.py createsuperuser
2, registration model
admin.py
from django.contrib import admin from .models import Publisher,Author,Books admin.register(Publisher) admin.register(Author) admin.register(Books)
1, create a super administrator
python manage.py createsuperuser
2, registration model
admin.py
from django.contrib import admin from .models import Publisher,Author,Books admin.register(Publisher) admin.register(Author) admin.register(Books)