Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (47 sloc) 1.96 kB
# __BEGIN_LICENSE__
# Copyright (C) 2008-2010 United States Government as represented by
# the Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# __END_LICENSE__
from django.conf.urls.defaults import * # pylint: disable=W0401
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
from responderMaps.urls import urlpatterns as responderMapsPatterns
from geocamMapSet.urls import urlpatterns as geocamMapSetPatterns
urlpatterns = patterns(
'',
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/login/$', 'django.contrib.auth.views.login',
{'loginRequired': False, # avoid redirect loop
}, 'login'),
url(r'^accounts/logout/$', 'django.contrib.auth.views.logout',
# show logout page instead of redirecting to log in again
{'loginRequired': False},
'logout'),
)
if 'geocamTiePoint' in settings.INSTALLED_APPS:
urlpatterns += patterns(
'',
url(r'^geocamTiePoint/', include('geocamTiePoint.urls')),
)
urlpatterns += responderMapsPatterns
urlpatterns += geocamMapSetPatterns
if settings.USE_STATIC_SERVE:
urlpatterns += patterns(
'',
url(r'^media/(?P<path>.*)$',
'geocamUtil.views.staticServeWithExpires.staticServeWithExpires',
dict(document_root=settings.MEDIA_ROOT,
show_indexes=True,
readOnly=True)),
url(r'^static/(?P<path>.*)$',
'geocamUtil.views.staticServeWithExpires.staticServeWithExpires',
dict(document_root=settings.STATIC_ROOT,
show_indexes=True,
readOnly=True)),
url(r'^favicon.ico$', 'django.views.generic.simple.redirect_to',
{'url': settings.STATIC_URL + 'responderMaps/icons/responderMaps.ico',
'readOnly': True}),
)
Jump to Line
Something went wrong with that request. Please try again.