Skip to content

Parse export KEY=value lines in .env files - #187

Closed
gyanu2507 wants to merge 1 commit into
HBNetwork:masterfrom
gyanu2507:fix/env-export-prefix
Closed

gyanu2507 wants to merge 1 commit into
HBNetwork:masterfrom
gyanu2507:fix/env-export-prefix

Conversation

@gyanu2507

Copy link
Copy Markdown

A line like export DATABASE_URL=postgres://... was stored under the key export DATABASE_URL, so config('DATABASE_URL') missed it.

docker-compose and python-dotenv treat a leading export as optional. Strip it before the split.

docker-compose and python-dotenv both treat a leading export as
optional syntax. We were storing the key as "export KEY".
@gyanu2507

Copy link
Copy Markdown
Author

Closing this to narrow my open-source work to fewer projects. Anyone is welcome to pick the change up if it's useful.

@gyanu2507 gyanu2507 closed this Nov 9, 2026
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.

1 participant