From: olivier <> Date: Sun, 20 May 2007 19:53:09 +0000 (+0000) Subject: add variable for static files root X-Git-Tag: 1.1~927 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3e80d17d26723d77bd26d2ddadd306de15bf1a30;p=telemeta.git add variable for static files root --- diff --git a/telemeta/urls.py b/telemeta/urls.py index 2a8b9af4..01cf5326 100644 --- a/telemeta/urls.py +++ b/telemeta/urls.py @@ -112,15 +112,15 @@ urlpatterns = patterns('', # CSS+Images (FIXME: for developement only) url(r'css/(?P.*)$', 'django.views.static.serve', - {'document_root': './telemeta/htdocs/css'}, + {'document_root': htdocs+'/css'}, name="telemeta-css"), url(r'images/(?P.*)$', 'django.views.static.serve', - {'document_root': './telemeta/htdocs/images'}, + {'document_root': htdocs+'/images'}, name="telemeta-images"), url(r'js/(?P.*)$', 'django.views.static.serve', - {'document_root': './telemeta/htdocs/js'}, + {'document_root': htdocs+'/js'}, name="telemeta-js"), url(r'swf/(?P.*)$', 'django.views.static.serve', - {'document_root': './telemeta/htdocs/swf'}, + {'document_root': htdocs+'/swf'}, name="telemeta-swf"), )