Rename the package from djarea to mizan across the entire codebase — Python package, React library, generators, tests, and examples. Fix JSX/hook casing (MizanProvider, useMizan, etc.) that broke when the original PascalCase names were lowercased during the rename. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47 lines
1.0 KiB
Python
47 lines
1.0 KiB
Python
"""
|
|
Django settings for running mizan's test suite standalone.
|
|
|
|
Usage:
|
|
cd django/
|
|
pip install -e ".[dev]"
|
|
pytest
|
|
"""
|
|
|
|
SECRET_KEY = "test-secret-key-for-standalone-tests-only"
|
|
|
|
DEBUG = True
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.sqlite3",
|
|
"NAME": ":memory:",
|
|
}
|
|
}
|
|
|
|
INSTALLED_APPS = [
|
|
"django.contrib.auth",
|
|
"django.contrib.contenttypes",
|
|
"django.contrib.sessions",
|
|
"mizan",
|
|
"tests",
|
|
]
|
|
|
|
AUTH_USER_MODEL = "tests.EmailUser"
|
|
|
|
ROOT_URLCONF = "tests.urls"
|
|
|
|
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
|
|
|
# JWT settings for test_auth.py (can be overridden per-class with @override_settings)
|
|
JWT_PRIVATE_KEY = "test-secret-key-for-testing-only"
|
|
JWT_ALGORITHM = "HS256"
|
|
|
|
# Session engine (for test_auth.py SessionStore usage)
|
|
SESSION_ENGINE = "django.contrib.sessions.backends.db"
|
|
|
|
MIDDLEWARE = [
|
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
|
"django.middleware.csrf.CsrfViewMiddleware",
|
|
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
|
]
|