Browse Source

braintree requirement is optional

pull/14/head
Pēteris Caune 9 years ago
parent
commit
81116431dd
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      hc/settings.py

+ 3
- 4
hc/settings.py View File

@ -36,8 +36,7 @@ INSTALLED_APPS = (
'hc.accounts', 'hc.accounts',
'hc.api', 'hc.api',
'hc.front',
'hc.payments'
'hc.front'
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
@ -128,7 +127,7 @@ COMPRESS_OFFLINE = True
EMAIL_BACKEND = "djmail.backends.default.EmailBackend" EMAIL_BACKEND = "djmail.backends.default.EmailBackend"
try:
if os.path.exists(os.path.join(BASE_DIR, "hc/local_settings.py")):
from .local_settings import * from .local_settings import *
except ImportError as e:
else:
warnings.warn("local_settings.py not found, using defaults") warnings.warn("local_settings.py not found, using defaults")

Loading…
Cancel
Save