-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathurls.py
25 lines (21 loc) · 941 Bytes
/
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
import os
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from norc.settings import MEDIA_ROOT
urlpatterns = patterns('',
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)$', admin.site.root),
(r'^$', 'norc.web.views.index'),
(r'^data/counts/$', 'norc.web.views.get_counts'),
(r'^data/(\w+)/$', 'norc.web.views.get_data'),
(r'^data/(\w+)/(\w+)/$', 'norc.web.views.get_data'),
(r'^data/(\w+)/(\w+)/(\w+)/$', 'norc.web.views.get_data'),
(r'^control/(\w+)/(\w+)/$', 'norc.web.views.control'),
(r'^logs/(\w+)/(\w+)/$', 'norc.web.views.get_log'),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': MEDIA_ROOT}),
)