-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support line breaks and comments in .env file #339
Conversation
The https://github.com/joke2k/django-environ/pull/283/files commit added useful warnings for skipped lines. However, it also started showing warnings for comment lines. Like in `.zshrc`, we add comments using hash (#). We also group common blocks together. Our env file was something like: ```env SECRET_KEY="S0M3#SecreT" DATABASE_URL=mysql://py-user:p@@sword@127.0.0.1:3306/db_name GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET="" ```
Seconded, comments are great, our environment configs are totally separate from the code, so it's useful to have comments to explain expected values. |
As document( |
Today we updated to 0.8.0 and faced the same problem. Please add support for comments and blank lines. Thanks. Have a nice day. |
@mike667 I'm so sorry! It was my mistake, I did not carefully review the proposed feature. |
@sergeyklay @pratyushmittal Thank you. |
Thank you for the patch! |
Commit #283 added useful warnings for skipped lines.
However, it also started showing warnings for comments.
Like in
.zshrc
, we add comments using hash (#). We also group commonblocks together.
Our env files look something like:
I am not sure if the project intends to support comments.
Will request you please support them if possible :)