-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
31 lines (24 loc) · 954 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
26
27
28
29
30
31
import os
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.static import serve
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^', include('thaihealthsms.accounts.urls')),
(r'^', include('thaihealthsms.administration.urls')),
(r'^', include('thaihealthsms.comment.urls')),
(r'^', include('thaihealthsms.domain.urls')),
(r'^', include('thaihealthsms.budget.urls')),
(r'^', include('thaihealthsms.kpi.urls')),
(r'^', include('thaihealthsms.report.urls')),
(r'^accounts/', include('registration.backends.default.urls')),
(r'^admin/(.*)', admin.site.root),
url(r'^$', 'accounts.views.view_user_homepage', name='view_user_homepage'),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^m/(?P<path>.*)$', serve, {
'document_root' : os.path.join(os.path.dirname(__file__), "media")
})
)