from .base import *  # noqa: F401,F403

DEBUG = True

INSTALLED_APPS += []  # room for dev-only apps (e.g. debug toolbar) later

# Print emails to the console instead of requiring real SMTP credentials in dev.
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# Trust any localhost port, not just the one in CORS_ALLOWED_ORIGINS. Vite's
# autoPort falls forward (5173 -> 5174 -> ...) whenever the preferred port is
# already taken by another project, so a fixed allowlist breaks the moment
# that happens. Dev-only — prod.py does not inherit this.
CORS_ALLOWED_ORIGIN_REGEXES = [
    r'^http://localhost:\d+$',
    r'^http://127\.0\.0\.1:\d+$',
]
