Commit cce3682b authored by fred's avatar fred

settings: use exec() to load local settings

parent 63eb8a2b
......@@ -252,10 +252,11 @@ WEBSITE_BASE_URL = 'http://www.radiopanik.org/'
COMBO_INITIAL_LOGIN_PAGE_PATH = '/'
COMBO_WELCOME_PAGE_PATH = None
try:
from .local_settings import *
except ImportError as e:
pass
local_settings_file = os.environ.get(
'PANIKWEB_SETTINGS_FILE', os.path.join(os.path.dirname(__file__), 'local_settings.py')
)
if os.path.exists(local_settings_file):
exec(open(local_settings_file).read())
if DEBUG and DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES += (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment