Skip to content

Conversation

@mmmavis
Copy link
Member

@mmmavis mmmavis commented Apr 1, 2025

No description provided.

mmmavis added 12 commits March 31, 2025 17:11
…ead of default SQLite

By default, Django falls back to SQLite when no DATABASE_URL is set in the environment.
This was causing the test suite to fail in CI despite the Postgres service being available.
This commit creates a fake .env file in CI with the correct DATABASE_URL so that
dj-database-url can correctly configure Django to connect to the CI's Postgres service.
This updates the database configuration to first check for a DATABASE_URL environment variable, allowing seamless support for PostgreSQL in CI and production. If DATABASE_URL is not set, it defaults to using SQLite, which is more convenient for local development.
@mmmavis
Copy link
Member Author

mmmavis commented Apr 1, 2025

Closing. I created another PR instead.

@mmmavis mmmavis closed this Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants