Refactor: Clean up settings files to eliminate duplication

- Remove duplicate FRONTEND_URL from base.py (was defined twice)
- Move LOGGING configuration from base.py to production.py (production-specific)
- Keep base.py minimal with only universal settings
- Verify EMAIL and AWS/STORAGES are production-only
- Update multitenancy.py import to not reference LOGGING from base.py

This ensures proper separation of concerns:
- base.py: Universal settings (DATABASES, CORS, CSRF, SECURITY basics)
- local.py: Development-specific (CSP, debug tools, console email, eager celery)
- production.py: Production-specific (LOGGING, EMAIL, AWS/S3, SECURITY headers, Sentry)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
poduck
2025-11-30 20:47:48 -05:00
parent 3ea71408db
commit af92a5ebf4
2 changed files with 18 additions and 36 deletions

View File

@@ -4,7 +4,7 @@ This file extends base.py and adds django-tenants configuration
"""
from .base import * # noqa
from .base import INSTALLED_APPS, MIDDLEWARE, DATABASES, LOGGING, env
from .base import INSTALLED_APPS, MIDDLEWARE, DATABASES, env
# =============================================================================
# MULTI-TENANCY CONFIGURATION (django-tenants)