From 89dedd6b8759dc2fe5022679fc018e6ad00af8c6 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Mon, 16 Jan 2017 19:57:58 -0600 Subject: [PATCH] Update dbs --- bikeshop_project/bikeshop/settings/base.py | 7 +++++-- bikeshop_project/bikeshop/settings/development.py | 10 ---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/bikeshop_project/bikeshop/settings/base.py b/bikeshop_project/bikeshop/settings/base.py index 16fbedf..9534a50 100644 --- a/bikeshop_project/bikeshop/settings/base.py +++ b/bikeshop_project/bikeshop/settings/base.py @@ -75,8 +75,11 @@ WSGI_APPLICATION = 'bikeshop.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'postgres', + 'USER': 'postgres', + 'HOST': 'db', + 'PORT': '5432', } } diff --git a/bikeshop_project/bikeshop/settings/development.py b/bikeshop_project/bikeshop/settings/development.py index 851d6d7..6d85226 100644 --- a/bikeshop_project/bikeshop/settings/development.py +++ b/bikeshop_project/bikeshop/settings/development.py @@ -10,16 +10,6 @@ DEBUG = True ALLOWED_HOSTS = [] -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.postgresql', - 'NAME': 'postgres', - 'USER': 'postgres', - 'HOST': 'workstand_db_1', - 'PORT': '5432', - } -} - if 'test' in sys.argv or 'test_coverage' in sys.argv: #Covers regular testing and django-coverage DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3'