from django.conf.urls.defaults import * from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib.gis import admin from overrides import autodiscover autodiscover() from django.contrib import databrowse urlpatterns = patterns('', (r'^', include('gwst_app.urls')), (r'^admin/utils/', include('admin_utils.urls')), #added for Exporting and Importing of Survey data (r'^admin/', include(admin.site.urls)), (r'^databrowse/(.*)', databrowse.site.root), ) #Serve media through development server instead of web server (Apache) if settings.DEBUG is True: urlpatterns += patterns('', (r'^site-media/(?P.*)$','django.views.static.serve',{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), (r'^media/(?P.*)$','django.views.static.serve',{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), (r'^install-media/(?P.*)$','django.views.static.serve',{'document_root': settings.STATICFILES_ROOT, 'show_indexes': True}) )