Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (20 sloc) 1.12 KB
from django.conf.urls.defaults import *
from django.views.static import *
from django.conf import settings
""" TODO For hosted apps, this isn't a problem
For self-hosted apps... automate checking
For self-hosted dev mode... this needs work ... Add code to automatically figure this out """
handler404 = 'streamManager.views.page_not_found'
handler500 = 'streamManager.views.server_error'
urlpatterns = patterns('',
(r'^.well-known/(?P<path>.*)$', 'django.views.static.serve', {'document_root': ('%s.well-known/' % settings.MEDIA_ROOT)}),
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
(r'^$', 'streamManager.views.homepage', {}, 'homepage'),
(r'^auth/', include('patchouli_auth.urls')),
(r'^manage/', include('streamManager.urls')),
(r'^u/', include('lifestream.urls')),
#(r'^openid/logout$', 'django.contrib.auth.views.logout', {'next_page':'/openid/login'}),
# temporarily now auth
(r'^openid/', include('django_openid_auth.urls')),
(r'^session_status$', 'patchouli_auth.views.session_status', {}, 'session_status')
)