From e86177306476dee2bd9164574ea0de1c17ff2381 Mon Sep 17 00:00:00 2001 From: rscnt Date: Wed, 20 May 2015 23:33:10 -0600 Subject: [PATCH] settings: added APP_ROOT_ENDPOINT, fixed reference Signed-off-by: rscnt --- dynamicweb/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index 6b338dfb..86dec158 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -13,10 +13,12 @@ gettext = lambda s: s BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ +# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ SITE_ID = 4047 +APP_ROOT_ENDPOINT = "/" + # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'xlhyv_l5-z6e8_@q6)n0up1a0$5-aad7d)om2t8g$bi6*@q44i' @@ -164,7 +166,7 @@ except ImportError: if not APP_ROOT_ENDPOINT.endswith('/'): APP_ROOT += '/' if LOGIN_URL is None: - LOGIN_URL = APP_ROOT + 'accounts/login/' + LOGIN_URL = APP_ROOT_ENDPOINT + 'accounts/login/' if LOGOUT_URL is None: LOGOUT_URL = APP_ROOT_ENDPOINT + 'accounts/logout/' if LOGIN_REDIRECT_URL is None: