Skip to content

Commit

Permalink
DB settings for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Mar 8, 2017
1 parent 1743923 commit 7c58e82
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ python:
- '3.4'
addons:
- postgresql: '9.3'
before_script:
- psql -c 'create database dc_website_test;' -U postgres
cache:
pip: true
directories:
Expand Down
8 changes: 6 additions & 2 deletions democracy_club/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'democracy_club',
'USER': 'postgres',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}

Expand Down
13 changes: 13 additions & 0 deletions democracy_club/settings/testing.py
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
from .base import * # noqa

DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'dc_website_test',
'USER': 'postgres',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}


0 comments on commit 7c58e82

Please sign in to comment.