Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (23 sloc) 1.07 KB
from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
(r'^semantic/', include('semanticeditor.urls')),
(r"", include("contacts_and_people.urls")),
(r"", include("features.urls")),
(r'^jsi18n/(?P<packages>\S+?)/$', 'django.views.i18n.javascript_catalog'),
)
if settings.DEBUG:
urlpatterns+= patterns('',
url(r'^media/cms/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.CMS_MEDIA_ROOT, 'show_indexes': True}),
# url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
(r'^' + settings.MEDIA_URL.lstrip('/'), include('appmedia.urls')),
)
urlpatterns += patterns('',
url('^autocomplete/$', 'widgetry.views.search', name='widgetry-search'),
url(r'^', include('cms.urls')),
)
Jump to Line
Something went wrong with that request. Please try again.