-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from paulocheque/postgres
Running tests on Postgres too
- Loading branch information
Showing
7 changed files
with
83 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from settings import * | ||
|
||
DDF_TEST_GEODJANGO = True | ||
|
||
# MySQL | ||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.mysql', | ||
'NAME': 'ddf', | ||
'USER': 'paulocheque', # please, change this if you want to run tests in your machine | ||
'PASSWORD': '', | ||
'HOST': 'localhost', | ||
'PORT': 3306, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from settings import * | ||
|
||
DDF_TEST_GEODJANGO = True | ||
|
||
# Postgres and PostGis | ||
# > psql -d ddf -c "CREATE EXTENSION postgis;" | ||
# > psql -d ddf -c "select postgis_lib_version();" | ||
DATABASES = { | ||
'default': { | ||
# Postgis supports all Django features | ||
# createdb ddf | ||
'ENGINE': 'django.contrib.gis.db.backends.postgis', | ||
'NAME': 'ddf', | ||
'USER': 'ddf_user', # please, change this if you want to run tests in your machine | ||
'PASSWORD': 'ddf_pass', | ||
'HOST': 'localhost', | ||
'PORT': 5432, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters