问题
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