forked from ozten/sudosocial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
executable file
·23 lines (20 loc) · 1.12 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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')
)