create admin django code example
Example 1: django admin create superuser
$ python manage.py createsuperuser
Example 2: django admin register
from django.contrib import admin
from .models import Author
@admin.register(Author)
class AuthorAdmin(admin.ModelAdmin):
pass