mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 13:32:57 +00:00
**Fixed Runtime Connection Issues:** - Remove connection testing during settings.py loading - Default to SQLite for reliable local development - Eliminate "Connection refused" errors on startup **Smart Configuration Approach:** - Default: SQLite (works out of the box) - Railway: PostgreSQL (via DATABASE_URL environment variable) - Local PostgreSQL: Optional via USE_POSTGRESQL=True or DATABASE_URL **User Experience:** - `python manage.py runserver` always works locally - No PostgreSQL setup required for development - Optional PostgreSQL for production parity testing - Clear .env documentation with multiple options **Configuration Options:** 1. Default SQLite: No configuration needed 2. Explicit DATABASE_URL: Full control over database 3. USE_POSTGRESQL=True: Simple PostgreSQL activation 4. Railway: Automatic PostgreSQL via environment **Fixes:** - Eliminates connection refused errors during startup - Prevents PostgreSQL dependency for basic development - Maintains Railway production compatibility - Provides clear upgrade path to PostgreSQL when needed 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| asgi.py | ||
| production_settings.py | ||
| settings.py | ||
| urls.py | ||
| wsgi.py | ||