Skip to content

Conversation

@aaronjae22
Copy link
Collaborator

There is a ImproperlyConfigured error that occurred because the "Extract deployment URL" step was importing Django settings (to read ALLOWED_HOSTS) before the DJ_DATABASE_CONN_STRING environment variable was available, and before database migrations had run.

This PR moves URL extraction step to run after the "Run migrations" step and changes implementation to read from existing SITE_URL setting in Django

Closes #225

@aaronjae22 aaronjae22 self-assigned this Nov 8, 2025
@aaronjae22 aaronjae22 requested a review from lisad November 20, 2025 19:04
@aaronjae22 aaronjae22 merged commit fb72bf7 into main Nov 21, 2025
3 checks passed
@aaronjae22 aaronjae22 deleted the ci-cd/fix-improperlyconfigured-database-conn-string branch November 21, 2025 16:41
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.

CI/CD deployment fails with ImproperlyConfigured error during URL extraction

3 participants