-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
39 lines (30 loc) · 1.62 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
from django.conf.urls.defaults import *
# On the deployed version, homedir will always be ''
import os
homedir = os.path.abspath(os.path.dirname(__file__))
handler500 = 'djangotoolbox.errorviews.server_error'
urlpatterns = patterns('',
# Django "warmup" request for appengine, don't touch this
('^_ah/warmup$', 'djangoappengine.views.warmup'),
# Main pages
('^$', 'django.views.generic.simple.direct_to_template', {'template': 'home.html'}),
('^stats$', 'quartermaster.views.stats_view', {}),
#('^update$', 'quartermaster.views.update_view', {}),
#('^profile$', 'quartermaster.views.profile_view', {}),
# Admin page
('^admin$', 'quartermaster.views.admin_view', {}),
# Login processing and redirect
('^confirmlogin$', 'quartermaster.views.confirmlogin_view', {}),
# Static files OLD DECLARATIONS FROM ANOTHER PROJECT - NOT PART OF QUARTERMASTER - EXAMPLES ONLY
#('^favicon.ico$', 'django.views.generic.simple.redirect_to',
#{'url': 'http://s3.mediasnak.com/assets/favicon.ico', 'permanent' : True}),
#('^icon.png$', 'django.views.generic.simple.redirect_to',
#{'url': 'http://s3.mediasnak.com/assets/icon.png', 'permanent' : True}),
# Below not needed - path overridden in app.yaml
#('^robots.txt$', 'django.views.static.serve',
# {'path': 'quartermaster/static/robots.txt', 'document_root' : homedir}),
#('^static/style.css$', 'django.views.static.serve',
# {'path': 'app/static/style.css', 'document_root' : homedir}),
#('^static/logo.png$', 'django.views.static.serve',
# {'path': 'app/static/logo.png', 'document_root' : homedir}),
)