diff options
author | Magnus Hagander | 2018-12-12 02:25:15 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-12-12 02:25:15 +0000 |
commit | 559005fb55da9ddc18046f4ec19ed98829602b1f (patch) | |
tree | 32c814944650f628abc8b6c1c0ea87e20b1800b0 /postgresqleu | |
parent | e88dc861fde163d0803ab8f03a2bb45333a9a37a (diff) |
Remove accidentally duplicated code
And also build login URL dynamically
Diffstat (limited to 'postgresqleu')
-rw-r--r-- | postgresqleu/settings.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/postgresqleu/settings.py b/postgresqleu/settings.py index 46dfba04..296cdd16 100644 --- a/postgresqleu/settings.py +++ b/postgresqleu/settings.py @@ -269,7 +269,7 @@ if ENABLE_PG_COMMUNITY_AUTH: AUTHENTICATION_BACKENDS = ( 'postgresqleu.auth.AuthBackend', ) - LOGIN_URL="http://localhost:8002/accounts/login/" + LOGIN_URL="{0}/accounts/login/".format(SITEBASE) 4 if ENABLE_ELECTIONS and not ENABLE_MEMBERSHIP: raise Exception("Elections module requires membership module!") @@ -282,14 +282,6 @@ if ENABLE_ELECTIONS: INSTALLED_APPS.append('postgresqleu.elections') -if ENABLE_PG_COMMUNITY_AUTH: - AUTHENTICATION_BACKENDS = ( - 'postgresqleu.auth.AuthBackend', - ) - LOGIN_URL="http://localhost:8002/accounts/login/" - - - if ENABLE_BRAINTREE: INSTALLED_APPS.append('postgresqleu.braintreepayment') BRAINTREE_SANDBOX=False |