-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathurls.py
46 lines (33 loc) · 1.03 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
from django.conf.urls.defaults import patterns, include, url
from api.urls import v1_api
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from settings import DEBUG
from django.views.generic.simple import direct_to_template
admin.autodiscover()
urlpatterns = patterns('',
(r'^processing/',
include('processing.urls')),
(r'^quartz/',
include('quartz.urls')),
(r'^updates/',
include('updates.urls')),
(r'^administration/',
include('administration.urls')),
(r'^doorbell/',
include('doorbell.urls')),
(r'^api/',
include(v1_api.urls)),
url(r'^streetview/$',
direct_to_template,
{'template': 'streetview/streetview.html'},
name="qnn"),
url(r'^$',
direct_to_template,
{'template': 'frontpage.html'},
name="frontpage"),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
)
if DEBUG:
urlpatterns += staticfiles_urlpatterns()