Allow running from working directory

This commit is contained in:
Sunil Mohan Adapa committed 2014-08-31 16:32:11 +05:30
1 parent 4625bc55df
commit f243dfa3ab
8 files changed
+10 -13

No files matched your search

+1 -1
View File
@@ -194,7 +194,7 @@ def configure_django():
ROOT_URLCONF='plinth.urls',
SESSION_ENGINE='django.contrib.sessions.backends.file',
SESSION_FILE_PATH=sessions_directory,
STATIC_URL=cfg.server_dir + '/static/',
STATIC_URL='/'.join([cfg.server_dir, 'static/']).replace('//', '/'),
TEMPLATE_CONTEXT_PROCESSORS=context_processors,
TEMPLATE_DIRS=template_directories)
+1 -1
View File
@@ -39,7 +39,7 @@ def read():
parser = SafeConfigParser(
defaults={
'root': directory,
'root': os.path.realpath(directory),
})
parser.read(config_file)