# HG changeset patch # User ymh # Date 1304211703 -7200 # Node ID ba3fa367c3c5c0ad51917e601725ca50719b45d6 # Parent 06556e9bbd7a0a46414fb0ec4deb85413ab344fb allow overriding all settings diff -r 06556e9bbd7a -r ba3fa367c3c5 web/ldtplatform/settings.py --- a/web/ldtplatform/settings.py Fri Apr 29 11:01:46 2011 +0200 +++ b/web/ldtplatform/settings.py Sun May 01 03:01:43 2011 +0200 @@ -178,15 +178,22 @@ from config import * -LOGIN_URL = BASE_URL + 'ldtplatform/accounts/login/' -LOGOUT_URL = BASE_URL + 'ldtplatform/accounts/disconnect/' -LOGIN_REDIRECT_URL = BASE_URL + 'ldtplatform/ldt/' -LOGOUT_REDIRECT_URL = BASE_URL + 'ldtplatform/accounts/login' -PROFILE_REDIRECT_URL = BASE_URL + 'ldtplatform/auth_accounts/create/profile' +if not "LOGIN_URL" in locals(): + LOGIN_URL = BASE_URL + 'ldtplatform/accounts/login/' +if not "LOGOUT_URL" in locals(): + LOGOUT_URL = BASE_URL + 'ldtplatform/accounts/disconnect/' +if not "LOGIN_REDIRECT_URL" in locals(): + LOGIN_REDIRECT_URL = BASE_URL + 'ldtplatform/ldt/' +if not "LOGOUT_REDIRECT_URL" in locals(): + LOGOUT_REDIRECT_URL = BASE_URL + 'ldtplatform/accounts/login' +if not "PROFILE_REDIRECT_URL" in locals(): + PROFILE_REDIRECT_URL = BASE_URL + 'ldtplatform/auth_accounts/create/profile' -LOGIN_ERROR_URL = BASE_URL + 'ldtplatform/accounts/login' +if not "LOGIN_ERROR_URL" in locals(): + LOGIN_ERROR_URL = BASE_URL + 'ldtplatform/accounts/login' -GLOBAL_LOG_LEVEL = LOG_LEVEL -GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}] +if not "GLOBAL_LOG_LEVEL" in locals(): + GLOBAL_LOG_LEVEL = LOG_LEVEL +if not "GLOBAL_LOG_HANDLERS" in locals(): + GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}] -