Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to register a model in Django

# in admin.py
from django.contrib import admin
#if you have a model called Post
from .models import Post

admin.site.register(Post)
Source by codinggear.blog #
 
PREVIOUS NEXT
Tagged: #How #register #model #Django
ADD COMMENT
Topic
Name
6+7 =