django site admin code example
Example 1: django admin register mdoel
from django.contrib import admin
from myproject.myapp.models import Author
admin.site.register(Author)
Example 2: django runserver
python manage.py runserver
Example 3: django admin link
<a href="{% url 'admin:index' %}">Admin</a>
Example 4: django admin register
from django.contrib import admin
from .models import Author
@admin.register(Author)
class AuthorAdmin(admin.ModelAdmin):
pass