Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 1.29 KB
from django.conf.urls.defaults import *
from django.conf import settings
from staticfiles.urls import staticfiles_urlpatterns
from geonode.sitemap import LayerSitemap, MapSitemap
from geonode.proxy.urls import urlpatterns as proxy_urlpatterns
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
js_info_dict = {
'domain': 'djangojs',
'packages': ('geonode',)
}
sitemaps = {
"layer": LayerSitemap,
"map": MapSitemap
}
urlpatterns = patterns('mapstory.views',
(r'^(?:index/?)?$', 'index'),
(r'', include('geonode.simplesearch.urls')), # put this first to ensure search urls priority
(r'', include('geonode.urls')),
(r'^data/create_annotations_layer/(?P<mapid>\d+)$','create_annotations_layer'),
url(r'^mapstory/donate$','donate',name='donate'),
url(r'^mapstory/alerts$','alerts',name='alerts'),
url(r'^mapstory/tile/(?P<mapid>\d+)$','map_tile',name='map_tile'),
url(r'^mapstory/tiles$','map_tiles',name='map_tiles'),
)
urlpatterns += proxy_urlpatterns
# Extra static file endpoint for development use
if settings.SERVE_MEDIA:
urlpatterns += [url(r'^thumbs/(?P<path>.*)$','django.views.static.serve',{
'document_root' : settings.THUMBNAIL_STORAGE
})]
urlpatterns += staticfiles_urlpatterns()