-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
34 lines (29 loc) · 1.68 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
from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('django.views.generic.simple',
url(r'^$', 'direct_to_template', { 'template':'index.html'}),
url(r'^about$', 'direct_to_template', { 'template':'about.html'}),
url(r'^projects$', 'direct_to_template', {'template':'projects.html'}),
url(r'^projects/bosme$', 'direct_to_template', {'template':'projects/bosme.html'}),
url(r'^projects/waves$', 'direct_to_template', {'template':'projects/waves.html'}),
url(r'^projects/bossa$', 'direct_to_template', {'template':'projects/bossa.html'}),
url(r'^projects/seed$', 'direct_to_template', {'template':'projects/seed.html'}),
url(r'^projects/coast$', 'direct_to_template', {'template':'projects/coast.html'}),
url(r'^projects/leafs$', 'direct_to_template', {'template':'projects/leafs.html'}),
url(r'^media$', 'direct_to_template', {'template': 'media.html'}),
url(r'^media/videos$', 'direct_to_template', {'template': 'media/videos.html'}),
url(r'^media/photos$', 'direct_to_template', {'template':'media/photos.html'}),
# Example:
# (r'^blueoceansciences/', include('blueoceansciences.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^assets/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
)