django-model-utils/tests/settings.py

26 lines
612 B
Python
Raw Normal View History

import os
2017-12-11 14:08:47 +00:00
INSTALLED_APPS = (
'model_utils',
'tests',
)
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
2020-11-29 13:51:26 +00:00
"NAME": os.environ.get("DB_NAME", "modelutils"),
"USER": os.environ.get("DB_USER", 'postgres'),
"PASSWORD": os.environ.get("DB_PASSWORD", ""),
2021-10-08 13:09:04 +00:00
"HOST": os.environ.get("DB_HOST", "localhost"),
2020-11-29 13:54:45 +00:00
"PORT": os.environ.get("DB_PORT", 5432)
},
2017-12-11 14:08:47 +00:00
}
SECRET_KEY = 'dummy'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}
}
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'