-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
46 lines (39 loc) · 2.26 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
46
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^laurenbrincat/', include('laurenbrincat.foo.urls')),
# 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')),
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),
# Custom routes
#(r'^(.*)', 'laurenbrincat.work.views.index'),
(r'^$', 'laurenbrincat.biography.views.index'),
(r'^oldhome/$', 'laurenbrincat.work.views.index'),
(r'^work/page_detail', 'laurenbrincat.work.views.page_detail'),
(r'^work/page_list', 'laurenbrincat.work.views.page_list'),
(r'^work/$', 'laurenbrincat.work.views.index'),
#(r'^work/([^/?]+)$', 'laurenbrincat.work.views.work_list'),
(r'^work/list$', 'laurenbrincat.work.views.work_list'),
#(r'^work/([^/?]+)/$', 'laurenbrincat.work.views.page_list'),
#(r'^work/([^/?]+)/list$', 'laurenbrincat.work.views.page_list'),
#(r'^work/([^/?]+)/(\d+)$', 'laurenbrincat.work.views.page_detail'),
#(r'^work/([^/?]+)/(\d+)/$', 'laurenbrincat.work.views.page_detail'),
(r'^bio/$', 'laurenbrincat.biography.views.index'),
(r'^biography/$', 'laurenbrincat.biography.views.json_index'),
(r'^biography/award$', 'laurenbrincat.biography.views.award'),
(r'^biography/education$', 'laurenbrincat.biography.views.education'),
(r'^biography/exhibition$', 'laurenbrincat.biography.views.exhibition'),
(r'^biography/info$', 'laurenbrincat.biography.views.info'),
(r'^upcoming/$', 'laurenbrincat.upcoming.views.index'),
(r'^contact/$', 'laurenbrincat.contact.views.index'),
# Static route
#(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'index.html'}),
#(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'comingsoon.html'}),
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/egcalso/Work/EnzymeIT/LaurenBrincat/laurenbrincat/media/'}),
(r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/egcalso/Work/EnzymeIT/LaurenBrincat/laurenbrincat/media/'}),
)