fargo/tests/settings.py

20 lines
393 B
Python

import os
import tempfile
DEBUG = False
ALLOWED_HOSTS = ['*']
LANGUAGE_CODE = 'en-US'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.' + os.environ.get('DB_ENGINE', 'sqlite3'),
'NAME': 'fargo.sqlite3',
'TEST': {
'NAME': 'fargo-test-' + os.environ.get('DB_ENGINE', 'sqlite3'),
},
}
}
MEDIA_ROOT = tempfile.mkdtemp('fargo-test')