- New Features - Introduce `AUTH_USER_MODEL` for a custom user. - Add `STATICFILES_DIRS` to explicitly point to the static directory. - Simplify email backend configuration using environment variables. - Enhancements - Remove djinit boilerplate and development‑only settings. - Drop `corsheaders` middleware and `rest_framework_simplejwt.token_blacklist`. - Update `TEMPLATES` to include project templates via `BASE_DIR / "templates"`. - Clean up URL patterns, removing deprecated JWT endpoint comments. - Reorganize security settings and static storage configuration. - Bug Fixes - (none)
27 lines
721 B
Python
27 lines
721 B
Python
from .base import *
|
|
|
|
SECRET_KEY = "o$62pY2y3M3&!YtUG*857JA=*svOdaVFf+%veG@XZkmfD0GOm$"
|
|
DEBUG = True
|
|
ALLOWED_HOSTS = ["*"]
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.sqlite3",
|
|
"NAME": BASE_DIR / "db.sqlite3",
|
|
"OPTIONS": {
|
|
"transaction_mode": "IMMEDIATE",
|
|
"timeout": 5,
|
|
"init_command": """
|
|
PRAGMA journal_mode=WAL;
|
|
PRAGMA synchronous=NORMAL;
|
|
PRAGMA mmap_size = 134217728;
|
|
PRAGMA journal_size_limit = 27103364;
|
|
PRAGMA cache_size=2000;
|
|
""",
|
|
},
|
|
}
|
|
}
|
|
|
|
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
|
SECURE_SSL_REDIRECT = False
|