quantum-ai/netcop_hub
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
..
__init__.py Initial Django project setup with working homepage 2025-07-08 16:30:56 +05:30
asgi.py Initial Django project setup with working homepage 2025-07-08 16:30:56 +05:30
production_settings.py Add Railway deployment config 2025-07-12 03:43:14 +05:30
settings.py Fix database configuration - reliable SQLite default with PostgreSQL option 2025-07-12 10:15:37 +05:30
urls.py Add Job Posting Generator and Social Ads Generator agents 2025-07-10 18:26:41 +05:30
wsgi.py Initial Django project setup with working homepage 2025-07-08 16:30:56 +05:30