-
|
Hi, I would like to extend your template for change_form.html. Which is the structure of the folder I have to follow to extend it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
To override the base change_form, I have a template in To customize a change form for a specific model, I have for example |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.


To override the base change_form, I have a template in
<project>/templates/admin/change_form.htmlprojectis a django app that’s first in INSTALLED_APPS, before django-admin-interface and django.To customize a change form for a specific model, I have for example
<project>/<app1>/templates/admin/<model1>_change_form.htmland setchange_form_template = "admin/<model1>_change_form.htmlin the admin class.