refactor(config): use dj-database-url for flexible database configuration #29

Merged
Saani merged 1 commits from feature/meetings into main 2025-11-24 00:02:03 +00:00
Owner
  • Add dj-database-url package for parsing DATABASE_URL
  • Replace hardcoded PostgreSQL config with DATABASE_URL environment variable
  • Add connection pooling with conn_max_age and health checks
  • Fallback to SQLite for local development when DATABASE_URL is not set
  • Remove obsolete production config comments
  • Update requirements.txt with new dependency

This change improves deployment flexibility by supporting standard DATABASE_URL format commonly used in cloud platforms (Heroku, Railway, etc.) while maintaining backward compatibility with local development using SQLite.

- Add dj-database-url package for parsing DATABASE_URL - Replace hardcoded PostgreSQL config with DATABASE_URL environment variable - Add connection pooling with conn_max_age and health checks - Fallback to SQLite for local development when DATABASE_URL is not set - Remove obsolete production config comments - Update requirements.txt with new dependency This change improves deployment flexibility by supporting standard DATABASE_URL format commonly used in cloud platforms (Heroku, Railway, etc.) while maintaining backward compatibility with local development using SQLite.
Saani added 1 commit 2025-11-24 00:01:57 +00:00
- Add dj-database-url package for parsing DATABASE_URL
- Replace hardcoded PostgreSQL config with DATABASE_URL environment variable
- Add connection pooling with conn_max_age and health checks
- Fallback to SQLite for local development when DATABASE_URL is not set
- Remove obsolete production config comments
- Update requirements.txt with new dependency

This change improves deployment flexibility by supporting standard DATABASE_URL format commonly used in cloud platforms (Heroku, Railway, etc.) while maintaining backward compatibility with local development using SQLite.
Saani merged commit 045b56d8f8 into main 2025-11-24 00:02:03 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ATTUNE-HEART-THERAPY/alternative-backend-service#29
No description provided.