aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorStevan Radakovic <stevan.radakovic@linaro.org>2012-10-10 16:52:13 +0200
committerStevan Radakovic <stevan.radakovic@linaro.org>2012-10-10 16:52:13 +0200
commit72ee29f4b7413dcfa6263db926b17d42d4bd5468 (patch)
tree22801ee1fa270f2eb65463977474d59e08d82ced /urls.py
parentfeb765932fb93523777ffa912bf677c27877aba5 (diff)
Add initial css and js. Implement tabs on pages without meaningful data.
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index 6672adf..1d92c39 100644
--- a/urls.py
+++ b/urls.py
@@ -1,3 +1,4 @@
+from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
@@ -15,6 +16,12 @@ urlpatterns = patterns('',
url(r'^linaro-openid/', include('django_openid_auth.urls')),
url(r'^logout/$', 'django.contrib.auth.views.logout'),
+ # Handle JS libs and CSS.
+ url(r'^js/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.JS_PATH}),
+ url(r'^css/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.CSS_PATH}),
+
# The license page...
url(r'^license$',
'license_protected_downloads.views.show_license',