From 81116431dd749c2d5bba96ed99685ad72dae9d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 23 Nov 2015 09:06:43 +0200 Subject: [PATCH] braintree requirement is optional --- hc/settings.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hc/settings.py b/hc/settings.py index 83abc219..be6d12be 100644 --- a/hc/settings.py +++ b/hc/settings.py @@ -36,8 +36,7 @@ INSTALLED_APPS = ( 'hc.accounts', 'hc.api', - 'hc.front', - 'hc.payments' + 'hc.front' ) MIDDLEWARE_CLASSES = ( @@ -128,7 +127,7 @@ COMPRESS_OFFLINE = True EMAIL_BACKEND = "djmail.backends.default.EmailBackend" -try: +if os.path.exists(os.path.join(BASE_DIR, "hc/local_settings.py")): from .local_settings import * -except ImportError as e: +else: warnings.warn("local_settings.py not found, using defaults")