Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

edit models in django admin

#go to the admin.py inside django app directory
from django.contrib import admin
from .models import <name of model>

admin.site.register(<name of model>)

#this should now let you view and interact with your models on /admin
 
PREVIOUS NEXT
Tagged: #edit #models #django #admin
ADD COMMENT
Topic
Name
9+6 =