mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Allow running from working directory
This commit is contained in:
1 parent
4625bc55df
commit
f243dfa3ab
8 files changed
+10
-13
No files matched your search
+1
-1
@@ -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
@@ -39,7 +39,7 @@ def read():
|
||||
|
||||
parser = SafeConfigParser(
|
||||
defaults={
|
||||
'root': directory,
|
||||
'root': os.path.realpath(directory),
|
||||
})
|
||||
parser.read(config_file)
|
||||
|
||||
|
||||
Reference in new issue
Block a user