settings: added APP_ROOT_ENDPOINT, fixed reference
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
7b8fe87238
commit
e861773064
1 changed files with 4 additions and 2 deletions
|
@ -13,10 +13,12 @@ gettext = lambda s: s
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
# Quick-start development settings - unsuitable for production
|
# 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
|
SITE_ID = 4047
|
||||||
|
|
||||||
|
APP_ROOT_ENDPOINT = "/"
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = 'xlhyv_l5-z6e8_@q6)n0up1a0$5-aad7d)om2t8g$bi6*@q44i'
|
SECRET_KEY = 'xlhyv_l5-z6e8_@q6)n0up1a0$5-aad7d)om2t8g$bi6*@q44i'
|
||||||
|
|
||||||
|
@ -164,7 +166,7 @@ except ImportError:
|
||||||
if not APP_ROOT_ENDPOINT.endswith('/'):
|
if not APP_ROOT_ENDPOINT.endswith('/'):
|
||||||
APP_ROOT += '/'
|
APP_ROOT += '/'
|
||||||
if LOGIN_URL is None:
|
if LOGIN_URL is None:
|
||||||
LOGIN_URL = APP_ROOT + 'accounts/login/'
|
LOGIN_URL = APP_ROOT_ENDPOINT + 'accounts/login/'
|
||||||
if LOGOUT_URL is None:
|
if LOGOUT_URL is None:
|
||||||
LOGOUT_URL = APP_ROOT_ENDPOINT + 'accounts/logout/'
|
LOGOUT_URL = APP_ROOT_ENDPOINT + 'accounts/logout/'
|
||||||
if LOGIN_REDIRECT_URL is None:
|
if LOGIN_REDIRECT_URL is None:
|
||||||
|
|
Loading…
Reference in a new issue