Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

admin site

from django.contrib import admin
from myapp.models import Author

class AuthorAdmin(admin.ModelAdmin):
    pass
admin.site.register(Author, AuthorAdmin)
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #admin #site
ADD COMMENT
Topic
Name
5+2 =