Home > Net >  Override a template of a Django package
Override a template of a Django package

Time:01-21

How can I override a change_list.html template of a Django package e.g enter image description here

CodePudding user response:

path to the file of your app : app/templates/import_export/change_list.html this is the path to normal view. Not admin view.

path in git repository: app/templates/admin/import_export/change_list.html this is the path to admin view.

I understand - you use django.admin. In this case you should add admin folder in templates folder.

  • Related