Hi, I tried overriding the map template using bold line below: class LocationAdmin(geo_admin.OSMGeoAdmin): form = LocationForm map_template = 'gis/admin/google.html
In my settings.py I have added my folder: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ os.path.join(BASE_DIR, 'templates') ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.static', ], 'debug': DEBUG }, } ] and my files are properly located: However, when my admin page loads, it seems to not load from my template but instead load from django/forms/templates/ (as per error). Template-loader postmortem Django tried loading these templates, in this order: Using engine django: django.template.loaders.filesystem.Loader: ***/lib/python2.7/site-packages/django/forms/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/django/contrib/auth/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/django/forms/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/filebrowser/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/django/contrib/admin/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/django/contrib/gis/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/tinymce/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/ios_notifications/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/adminsortable/templates/gis/admin/google.html (Source does not exist) django.template.loaders.app_directories.Loader: ***/lib/python2.7/site-packages/django_mptt_admin/templates/gis/admin/google.html (Source does not exist) Any idea why it is not picking up, and is there any way to overwrite the map widget (or any other widgets for the matter)? Thanks. Regards, Kok Hoor -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/91732821-D7CC-46FD-8047-B19A404682B4%40gmail.com. For more options, visit https://groups.google.com/d/optout.