Go to file
Claude ed51bb95ee Fix database configuration - reliable SQLite default with PostgreSQL option
**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>
2025-07-12 10:15:37 +05:30
agent_base Implement smart database auto-detection for local/Railway compatibility 2025-07-12 10:10:42 +05:30
authentication Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
core Fix button visibility issues and improve UI consistency 2025-07-12 02:47:12 +05:30
data_analyzer Implement PostgreSQL development parity and fix migration conflicts 2025-07-12 09:59:44 +05:30
docs Implement PostgreSQL development parity and fix migration conflicts 2025-07-12 09:59:44 +05:30
job_posting_generator Fix button visibility issues and improve UI consistency 2025-07-12 02:47:12 +05:30
netcop_hub Fix database configuration - reliable SQLite default with PostgreSQL option 2025-07-12 10:15:37 +05:30
social_ads_generator Fix button visibility issues and improve UI consistency 2025-07-12 02:47:12 +05:30
static Fix homepage UI and button hover effects across all pages 2025-07-12 05:01:34 +05:30
templates Fix homepage UI and button hover effects across all pages 2025-07-12 05:01:34 +05:30
tests Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
wallet first working 2025-07-09 02:15:35 +05:30
weather_reporter Fix button visibility issues and improve UI consistency 2025-07-12 02:47:12 +05:30
.env.example Add Railway deployment config 2025-07-12 03:43:14 +05:30
.gitignore Fix button visibility issues and improve UI consistency 2025-07-12 02:47:12 +05:30
manage.py Initial Django project setup with working homepage 2025-07-08 16:30:56 +05:30
railway.json Implement PostgreSQL development parity and fix migration conflicts 2025-07-12 09:59:44 +05:30
requirements_clean.txt Add Railway deployment config 2025-07-12 03:43:14 +05:30
requirements.txt Fix Railway database configuration 2025-07-12 05:05:16 +05:30