From 8bb7eee418891a0713064fd9abcb0553aa8027be Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Tue, 4 Jul 2017 08:47:55 +0200 Subject: [PATCH] Corrected some mistakes --- dynamicweb/settings/__init__.py | 2 +- dynamicweb/settings/base.py | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/dynamicweb/settings/__init__.py b/dynamicweb/settings/__init__.py index 3a9877ad..8d236968 100644 --- a/dynamicweb/settings/__init__.py +++ b/dynamicweb/settings/__init__.py @@ -1 +1 @@ -# from .base import * +from .base import * # flake8: noqa diff --git a/dynamicweb/settings/base.py b/dynamicweb/settings/base.py index 60f2d0e9..f6524791 100644 --- a/dynamicweb/settings/base.py +++ b/dynamicweb/settings/base.py @@ -191,11 +191,7 @@ CMS_TEMPLATES = ( DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', - 'NAME': 'app', - 'HOST': 'localhost', - 'USER': 'ubuntu', - 'PASSWORD': 'Qwerty123', - + 'NAME': 'app' } } @@ -480,11 +476,10 @@ STRIPE_API_PUBLIC_KEY = env('STRIPE_API_PUBLIC_KEY') DEBUG = True -# not used -# if DEBUG: -# from .local import * -# # else: -# # from .prod import * +if DEBUG: + from .local import * # flake8: noqa +else: + from .prod import * # flake8: noqa ANONYMOUS_USER_NAME = 'anonymous@ungleich.ch'