<filename>posts/admin.py
from django.contrib import admin
from posts.models import Post,Comment

admin.site.register(Comment)
admin.site.register(Post)

<filename>posts/admin.py
from django.contrib import admin
from posts.models import Post,Comment

admin.site.register(Comment)
admin.site.register(Post)
