This repository has been archived by the owner on Apr 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
urls.py
55 lines (37 loc) · 1.69 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import os
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
from django.views.generic.simple import direct_to_template
from account.openid_consumer import PinaxConsumer
if settings.ACCOUNT_OPEN_SIGNUP:
signup_view = "account.views.signup"
else:
signup_view = "signup_codes.views.signup"
# override the default handler500 so we can pass MEDIA_URL
handler500 = "openscriptures_site.views.server_error"
urlpatterns = patterns('',
url(r'^$', direct_to_template, {"template": "homepage.html"}, name="home"),
url(r'^admin/invite_user/$', 'signup_codes.views.admin_invite_user', name="admin_invite_user"),
url(r'^account/signup/$', signup_view, name="acct_signup"),
url(r'^blog/', include("biblion.urls")),
url(r'^feed/$', "biblion.views.blog_feed", name="blog_feed_combined"),
url(r'^feed/(?P<section>[-\w]+)/$', "biblion.views.blog_feed", name="blog_feed"),
(r'^account/', include('account.urls')),
(r'^openid/(.*)', PinaxConsumer()),
(r'^notices/', include('notification.urls')),
(r'^announcements/', include('announcements.urls')),
(r'^profiles/', include('basic_profiles.urls')),
(r'^projects/', include('projects.urls')),
(r'^tagging_utils/', include('tagging_utils.urls')),
(r'^comments/', include('threadedcomments.urls')),
(r'^avatar/', include('avatar.urls')),
(r'^attachments/', include('attachments.urls')),
(r'^interest_groups/', include('interest_groups.urls')),
url(r'^admin/(.*)', admin.site.root),
)
if settings.SERVE_MEDIA:
urlpatterns += patterns('',
(r'^site_media/', include('staticfiles.urls')),
)