1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

Enable LOGIN_URL to be configured

This commit is contained in:
zhengxie
2016-01-05 12:07:58 +08:00
parent a56c116451
commit 100e264ec9

View File

@@ -217,8 +217,8 @@ CONSTANCE_DATABASE_CACHE_BACKEND = 'default'
AUTHENTICATION_BACKENDS = (
'seahub.base.accounts.AuthBackend',
)
LOGIN_REDIRECT_URL = '/profile/'
LOGIN_URL = SITE_ROOT + 'accounts/login'
ACCOUNT_ACTIVATION_DAYS = 7
@@ -608,10 +608,6 @@ if 'win32' in sys.platform:
fp.write("%d\n" % os.getpid())
fp.close()
# Put here after loading other settings files if `SITE_ROOT` is modified in
# other settings files.
LOGIN_URL = SITE_ROOT + 'accounts/login'
INNER_FILE_SERVER_ROOT = 'http://127.0.0.1:' + FILE_SERVER_PORT
CONSTANCE_CONFIG = {