mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
398e4487ad
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
732 B
Python
22 lines
732 B
Python
"""Réglages de développement : SQLite locale, DEBUG actif, clé non secrète."""
|
|
|
|
import os
|
|
|
|
from .base import * # noqa: F401,F403
|
|
from .base import BASE_DIR
|
|
|
|
DEBUG = True
|
|
SECRET_KEY = "dev-only-not-a-secret" # noqa: S105 - jamais utilisée en production
|
|
ALLOWED_HOSTS = ["127.0.0.1", "localhost"]
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.sqlite3",
|
|
# PYQUEST_DB_PATH : base jetable (tests de bout en bout), sans toucher à la base de dev.
|
|
"NAME": os.environ.get("PYQUEST_DB_PATH", BASE_DIR / "db.sqlite3"),
|
|
}
|
|
}
|
|
|
|
# Dossier des fichiers statiques collectés (essai avec nginx : scripts/local_stack.py).
|
|
STATIC_ROOT = os.environ.get("PYQUEST_STATIC_ROOT", BASE_DIR / "staticfiles")
|