- Environment-split settings: base/local/test/prod with django-environ - Postgres + Redis + Celery wiring (broker, beat, result backend) - All 9 domain app stubs: accounts, courses, cms, tracking, quizzes, training, certificates, reports, notifications - api app: /healthz/ endpoint, custom DRF exception handler, SecurityAuditMiddleware, permissions/throttle/upload-validation stubs - DRF global baseline: JWT+session auth, closed-by-default permissions, cursor/page pagination, drf-spectacular schema generation - Dockerfile (multi-env build arg), docker-compose.yml (local), docker-compose.test.yml (CI-friendly tmpfs Postgres) - pytest.ini with smoke + settings marker definitions - tests/test_smoke.py: startup, URL resolution, healthcheck shape - tests/test_settings_matrix.py: per-profile security assertions - .github/workflows/ci.yml: test, lint, schema CI jobs - .env.example with all required vars documented - .gitignore Co-Authored-By: Paperclip <noreply@paperclip.ing>
25 lines
585 B
Python
25 lines
585 B
Python
from .base import * # noqa: F401, F403
|
|
import environ
|
|
|
|
env = environ.Env()
|
|
|
|
DEBUG = True
|
|
ALLOWED_HOSTS = ["localhost", "127.0.0.1", "0.0.0.0"]
|
|
|
|
INSTALLED_APPS += ["debug_toolbar"] # noqa: F405
|
|
|
|
MIDDLEWARE = [
|
|
"debug_toolbar.middleware.DebugToolbarMiddleware",
|
|
] + MIDDLEWARE # noqa: F405
|
|
|
|
INTERNAL_IPS = ["127.0.0.1"]
|
|
|
|
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
|
|
|
LOGGING = {
|
|
"version": 1,
|
|
"disable_existing_loggers": False,
|
|
"handlers": {"console": {"class": "logging.StreamHandler"}},
|
|
"root": {"handlers": ["console"], "level": "DEBUG"},
|
|
}
|