-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
43 lines (31 loc) · 1.32 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
from django.conf.urls.defaults import *
from django.views.static import serve
from settings import DOC_ROOT
import os
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# site root url
(r'^home/$', 'swi09.theapp.views.home_page', {}, 'fake_home_page'),
# added about page
(r'^about/$', 'swi09.theapp.views.about_page', {}, 'about_page'),
# under contstruction
(r'^$', 'swi09.theapp.views.home_page', {}, 'home_page'),
# Ajax grapths
(r'^graphs$', 'swi09.theapp.views.graphs', {}, 'graphs_page'),
# Ajax save
(r'^save_req$', 'swi09.theapp.views.save_req', {}, 'save_req'),
# TEMPAjax grapths
(r'^show$', 'swi09.theapp.views.showme', {}, 'showme_home_page'),
# suggested plans
(r'^plans$', 'swi09.theapp.views.plans', {}, 'plans_page'),
# site media
(r'^static/(.*)$', serve, { 'document_root': os.path.join(DOC_ROOT,'media/') }),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
# internationalization support - setting the language
(r'^i18n/', include('django.conf.urls.i18n')),
# set a language
(r'^set_languauge/(?P<lang_code>\w+)/$', 'swi09.theapp.views.set_language', {}, 'set_lang_url'),
)