TEST_RUNNER='geonode.testrunner.GeoNodeTestRunner' # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" MEDIA_URL = 'http://*****:*****@j#*3z@!y24fz8%^z2v6atuy4bo9vqr1_a' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', # 'django.template.loaders.eggs.load_template_source', )
url(r'^data/upload$', 'geonode.maps.views.upload_layer', name='data_upload'), (r'^data/download$', 'geonode.maps.views.batch_layer_download'), (r'^data/(?P<layername>[^/]*)$', 'geonode.maps.views.layerController'), (r'^data/(?P<layername>[^/]*)/ajax-permissions$', 'geonode.maps.views.ajax_layer_permissions'), (r'^admin/', include(admin.site.urls)), (r'^i18n/', include('django.conf.urls.i18n')), (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), (r'^accounts/ajax_login$', 'geonode.views.ajax_login'), (r'^accounts/ajax_lookup$', 'geonode.views.ajax_lookup'), (r'^accounts/login', 'django.contrib.auth.views.login'), (r'^accounts/logout', 'django.contrib.auth.views.logout'), (r'^avatar/', include('avatar.urls')), (r'^accounts/', include('registration.urls')), (r'^profiles/', include('profiles.urls')), ) # # Extra static file endpoint for development use if settings.SERVE_MEDIA: import os def here(*x): return os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) root = here("..", "..", "geonode-client", "build", "geonode-client") if settings.MINIFIED_RESOURCES else here("..", "..", "geonode-client", "") urlpatterns += patterns('', (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': root}), (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': path_extrapolate('django/contrib/admin/media', 'django')}) )