Browse Source

Update dbs

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
89dedd6b87
  1. 7
      bikeshop_project/bikeshop/settings/base.py
  2. 10
      bikeshop_project/bikeshop/settings/development.py

7
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',
}
}

10
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'

Loading…
Cancel
Save