forked from Metalab/mos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
46 lines (31 loc) · 1.3 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
import settings
from django.conf.urls.defaults import *
from django.contrib import admin
from mos.admin import calendar_admin, project_admin, member_admin, scrooge_admin
from mos.cal.feeds import EventFeed
feeds = {
'events': EventFeed,
}
admin.autodiscover()
urlpatterns = patterns('',
(r'^feeds/(?P<url>.*)/$',
'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
(r'^calendar/', include('mos.cal.urls')),
(r'^rss/', include('mos.rss.urls')),
(r'^project/', include('mos.projects.urls')),
(r'^scrooge/', include('mos.scrooge.urls')),
(r'^$', 'mos.web.views.display_main_page'),
(r'^site_media/(?P<path>.*)$',
'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
(r'^admin/calendar/(.*)', calendar_admin.root),
(r'^admin/projects/(.*)', project_admin.root),
(r'^admin/members/(.*)', member_admin.root),
(r'^admin/scrooge/(.*)', scrooge_admin.root),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)', admin.site.root),
(r'^member/', include('mos.members.urls')),
(r'^wiki/.*$', 'mos.web.views.wikipage'),
# (r'^usbherelist/', include('mos.usbherelist.urls')),
(r'^announce/$', include('mos.announce.urls')),
(r'^cellardoor/', 'mos.web.views.display_cellardoor'),
)