diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/base_urls.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/config/base_urls.py b/config/base_urls.py index 0f63a75..aa97cbd 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -3,6 +3,7 @@ from django.contrib import admin from django.views import static from django.conf import settings from django.contrib.sitemaps.views import sitemap +from django.views.generic import TemplateView from pages.views import page from pages.views import PageDetailView @@ -18,6 +19,8 @@ from syndication.views import FacebookFeedView import builder.views import utils.views +from locations.views import MapDataList + admin.autodiscover() sitemaps = { @@ -30,7 +33,14 @@ sitemaps = { urlpatterns = [ url(r'^projects/data/natparks/(?P<path>.*)$', static.serve, {'document_root': settings.PROJ_ROOT + 'site/projects/data/natparks/'}), - url(r'^media/js/mainmap.js$', map_data), + url( + r'^media/js/mainmap.js$', + MapDataList.as_view(), + name="mapdatalist" + ), + url (r'media/js/leaflet-providers.js', + TemplateView.as_view(template_name='js/leaflet-providers.js') + ), url(r'^media/admin/(?P<path>.*)$', static.serve, {'document_root': settings.MEDIA_ROOT + '/admin'}), url(r'^media/(?P<path>.*)$', static.serve, {'document_root': settings.MEDIA_ROOT}), ] |