From 4bdae326f75808dfc24eb3bc978175563d9172d9 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Tue, 4 Jul 2017 23:16:27 +0200 Subject: [PATCH] Refactored the call to import local and prod files --- dynamicweb/settings/base.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/dynamicweb/settings/base.py b/dynamicweb/settings/base.py index 29b19c5b..f2af7a0e 100644 --- a/dynamicweb/settings/base.py +++ b/dynamicweb/settings/base.py @@ -473,14 +473,6 @@ REGISTRATION_MESSAGE = {'subject': "Validation mail", STRIPE_API_PRIVATE_KEY = env('STRIPE_API_PRIVATE_KEY') STRIPE_API_PUBLIC_KEY = env('STRIPE_API_PUBLIC_KEY') -DEBUG = bool_env('DEBUG') - -if DEBUG: - from .local import * -else: - from .prod import * - - ANONYMOUS_USER_NAME = 'anonymous@ungleich.ch' GUARDIAN_GET_INIT_ANONYMOUS_USER = 'membership.models.get_anonymous_user_instance' @@ -524,3 +516,10 @@ GOOGLE_ANALYTICS_PROPERTY_IDS = { 'dynamicweb-development.ungleich.ch': 'development', 'dynamicweb-staging.ungleich.ch': 'staging' } + +DEBUG = bool_env('DEBUG') + +if DEBUG: + from .local import * +else: + from .prod import *