mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-15 10:43:15 +00:00
Run tests with SQLite by default
SQLite doesn't require any initial setup and is significantly faster than PostgreSQL Also removed USER/PASSWORD/HOST vars. Postgres users can pass in PGUSER, PGPASSWORD and PGHOST environment variables instead
This commit is contained in:
parent
61511a01c9
commit
a447e53ba7
1 changed files with 2 additions and 7 deletions
|
|
@ -11,13 +11,8 @@ MEDIA_URL = '/media/'
|
|||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': os.environ.get('DATABASE_ENGINE', 'django.db.backends.postgresql_psycopg2'),
|
||||
'NAME': os.environ.get('DATABASE_NAME', 'wagtaildemo'),
|
||||
'TEST_NAME': os.environ.get('DATABASE_NAME', 'test_wagtaildemo'),
|
||||
'USER': os.environ.get('DATABASE_USER', 'postgres'),
|
||||
'PASSWORD': os.environ.get('DATABASE_PASS', None),
|
||||
'HOST': os.environ.get('DATABASE_HOST', None),
|
||||
'PORT': os.environ.get('DATABASE_PORT', None),
|
||||
'ENGINE': os.environ.get('DATABASE_ENGINE', 'django.db.backends.sqlite3'),
|
||||
'NAME': os.environ.get('DATABASE_NAME', 'wagtail'),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue