-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
21 lines (19 loc) · 918 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from django.conf.urls.defaults import patterns, include, url
from root.views import index, test
from shortlink.views import redirect_shortlink
from django.contrib import admin
import settings
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', index, name="index"),
url(r'^test/$', test),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^account/', include('community.urls')),
url(r'^schedule/', include('schedule.urls')),
url(r'^short_link/', include('shortlink.urls')),
url(r'^course_monitor/', include('coursemonitor.urls')),
url(r'^course_page_monitor/', include('coursepagemonitor.urls')),
url(r'^(?P<shortname>\w+)/$', redirect_shortlink, name='redirect_shortlink'),
)
urlpatterns += patterns('', (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}),)