chore(django): track initial migrations and test config

This commit is contained in:
2026-04-24 22:18:28 +03:30
parent 0289a15089
commit 9910b386d2
9 changed files with 996 additions and 4 deletions

30
config/settings/test.py Normal file
View File

@@ -0,0 +1,30 @@
from .base import *
DEBUG = False
SECRET_KEY = SECRET_KEY or "qlockify-test-secret-key"
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "test.sqlite3",
}
}
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "qlockify-tests",
}
}
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]
MEDIA_ROOT = BASE_DIR / "test_media"
STATIC_ROOT = BASE_DIR / "test_static"
CELERY_TASK_ALWAYS_EAGER = True
CELERY_TASK_EAGER_PROPAGATES = True
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"