diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-01 00:18:24 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-01 00:18:24 -0600 |
commit | db911e291fc5fe17af2c07a6e94675694633dcf8 (patch) | |
tree | a6f73fccd0bfe1d6efa2d412fdca326eb6b4fa93 /urls.py | |
parent | 0bb5e9fd6dfa5f5e3be8a9e9c7f0f7ea8ec37733 (diff) |
Use os.path.join for path manipulation
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,5 @@ +import os.path + from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin @@ -98,6 +100,6 @@ urlpatterns += patterns('', if settings.DEBUG == True: urlpatterns += patterns('', (r'^media/(.*)$', 'django.views.static.serve', - {'document_root': settings.DEPLOY_PATH+'/media'})) + {'document_root': os.path.join(settings.DEPLOY_PATH, 'media')})) # vim: set ts=4 sw=4 et: |