Files
project-managment/core/settings/development.py
T
sankalp c461084ad7 chore(core): scaffold Django core structure with settings, urls, asgi, wsgi
- New Features
  - Add core project entry points (asgi.py, wsgi.py, urls.py)
  - Create settings hierarchy (base.py, production.py) with environment parsing
  - Configure DRF, JWT, Swagger, Tailwind, and HTMX defaults out‑of‑the‑box- Enhancements
  - Set up CORS and security defaults for dev and prod environments
  - Enable WhiteNoise and Tailwind CLI for static file handling
2026-05-27 23:14:58 +05:45

42 lines
1.1 KiB
Python

"""generated with djinit"""
from .base import *
SECRET_KEY = "V+dILoQ9GMX(U)iI^*w-Q%Gb9feyJ=OgzyM9XMR%WpZG!oxlSJ"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ["*"]
# Database
# https://docs.djangoproject.com/en/5.2/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
"OPTIONS": {
"transaction_mode": "IMMEDIATE",
"timeout": 5, # seconds
"init_command": """
PRAGMA journal_mode=WAL;
PRAGMA synchronous=NORMAL;
PRAGMA mmap_size = 134217728;
PRAGMA journal_size_limit = 27103364;
PRAGMA cache_size=2000;
""",
},
}
}
# Email backend for development
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
# CORS settings for development
# Allow all origins in development (convenient but not secure)
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_CREDENTIALS = True
# Disable HTTPS redirect in development
SECURE_SSL_REDIRECT = False