-
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.html
project
is 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.html
and setchange_form_template = "admin/<model1>_change_form.html
in the admin class.