Files

20 lines
449 B
Python

import sys
from .base import *
DEBUG = True
ALLOWED_HOSTS = ["127.0.0.1", "localhost"]
# Optionnel: cookies moins stricts en dev, etc.
# CSRF_COOKIE_SECURE = False
# SESSION_COOKIE_SECURE = False
LOG_LEVEL = os.getenv("LOG_LEVEL", "DEBUG")
LOGGING["loggers"][""]["level"] = LOG_LEVEL
if "test" in sys.argv:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
}
}