django admin特定模型的自定义模板 [英] django admin custom template for a particular model
本文介绍了django admin特定模型的自定义模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
这完全涵盖在FineManual(tm)中,所以请先阅读这个。 >
查看此网址:
- 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
如果您有任何问题,请返回。
I am 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 djang-admin. So any help on that?
解决方案
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.
这篇关于django admin特定模型的自定义模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文