Don't use os.path.join() to concatenate URL parts

This could lead to "\" being used on Windows. Although, we won't be
supporting Windows, this is a conceptual problem.
This commit is contained in:
Sunil Mohan Adapa 2014-08-17 19:32:30 +05:30
parent 418f5ff397
commit b77c97e088

View File

@ -186,7 +186,7 @@ def configure_django():
ROOT_URLCONF='urls',
SESSION_ENGINE='django.contrib.sessions.backends.file',
SESSION_FILE_PATH=sessions_directory,
STATIC_URL=os.path.join(cfg.server_dir, 'static/'),
STATIC_URL=cfg.server_dir + '/static/',
TEMPLATE_CONTEXT_PROCESSORS=context_processors,
TEMPLATE_DIRS=template_directories)