17 lines
562 B
Python
17 lines
562 B
Python
import os
|
|
import secrets
|
|
import tempfile
|
|
|
|
os.environ.setdefault("DJANGO_SECRET_KEY", secrets.token_urlsafe(64))
|
|
os.environ.setdefault("FAM_DATA_DIR", tempfile.mkdtemp(prefix="fam-tests-"))
|
|
from .settings import * # noqa: F403, E402
|
|
|
|
ALLOWED_HOSTS = ["testserver", "localhost", "127.0.0.1"]
|
|
SESSION_COOKIE_SECURE = False
|
|
CSRF_COOKIE_SECURE = False
|
|
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
|
|
STORAGES["staticfiles"] = { # noqa: F405
|
|
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"
|
|
}
|
|
WHITENOISE_AUTOREFRESH = True
|