Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django admin custom template for a particular model

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?

like image 938
goromlagche Avatar asked Nov 20 '13 10:11

goromlagche


1 Answers

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.

like image 53
bruno desthuilliers Avatar answered Oct 09 '22 18:10

bruno desthuilliers