Django admin custom template for a particular model

北城余情 提交于 2019-12-08 18:03:36

问题


I'm trying to add a custom template for a particular model in Django admin. Basically I want to show up the Google map for address model in Django-admin. So any help on that?


回答1:


This is fully covered in the FineManual(tm) so please read this first.

Check this urls:

  • https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#overriding-admin-templates
  • https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#custom-template-options

and come back if you have any problem.



来源:https://stackoverflow.com/questions/20092749/django-admin-custom-template-for-a-particular-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!