-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Double quotes no longer work for including the #
in a string
#519
Comments
I had the same issue today thanks for reporting @alexkiro ! |
Yes, I can confirm the same problem. |
I just ran into the same issue, which causes the SECRET_KEY to be changed and thus our sessions can no longer be decoded. Our .env file has something like this:
And when using the latest django-environ our SECRET_KEY in Django is |
related:
@sergeyklay could you please cut a release with this change? |
Weird that this is not getting any attention. The PR with the fix was merged 6 months ago, and still no release has been made? We now switched away from django-environ and are using two dependencies instead:
|
After installing a new version of
django-environ
it appears that double quotes no longer work for including#
as a character in a string. This appears to be breaking change in how django-environ parses the env file. As far as I can tell it treats everything after # as a comment, and considers the string to just be the starting double quote"
For example in version
0.10.0
this worked fine:However in the latest version
0.11.2
this no longer works:As a workaround, single quotes do still work:
If this is an intentional change, I suggest adding a note about it in the changelog. I couldn't find anything about it at this point.
There does seem to be some related changes in #475, so maybe that's were this change occured.
The text was updated successfully, but these errors were encountered: