From 559005fb55da9ddc18046f4ec19ed98829602b1f Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 12 Dec 2018 11:25:15 +0900 Subject: Remove accidentally duplicated code And also build login URL dynamically --- postgresqleu/settings.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'postgresqleu') 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 -- cgit v1.2.3