Answers for "edit models in django admin"

0

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
Posted by: Guest on September-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language