mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
* Add tracker context manager and decorator * Handle auto-field warning in tests * Use tracker context in monkey-patched methods * Test delaying set_saved_fields call with context manager * Docs for tracker context * Describe FieldsContext context manager in changes * Fix unused import * #494 add breaking changes note on 4.1.1 release for #404 * #494 fix typo * #494 add docstring for FieldsContext * #494 move breaking changes from 4.1.1 to 4.1.0 * #494 fix typo and add some more docstrings
25 lines
603 B
Python
25 lines
603 B
Python
import os
|
|
|
|
INSTALLED_APPS = (
|
|
'model_utils',
|
|
'tests',
|
|
)
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.postgresql_psycopg2",
|
|
"NAME": os.environ.get("DB_NAME", "modelutils"),
|
|
"USER": os.environ.get("DB_USER", 'postgres'),
|
|
"PASSWORD": os.environ.get("DB_PASSWORD", ""),
|
|
"HOST": os.environ.get("DB_HOST", ""),
|
|
"PORT": os.environ.get("DB_PORT", 5432)
|
|
},
|
|
}
|
|
SECRET_KEY = 'dummy'
|
|
|
|
CACHES = {
|
|
'default': {
|
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
|
}
|
|
}
|
|
|
|
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|