from django.contrib import admin
from .models import <modelname>
admin.site.register(<modelname>)
#admin.py
from django.contrib import admin
from .models import Question
admin.site.register(Question)
from django.contrib import admin
from myproject.myapp.models import * # * means importing every class name of models
admin.site.register(Author)
admin.site.register(Book)
# in admin.py
from django.contrib import admin
#if you have a model called Post
from .models import Post
admin.site.register(Post)