-
-
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
interpolate
flag functionality is not implemented
#415
Comments
It does appear to work albeit in a limited fashion, e.g. here's the example from the docs, plus the use case I'm looking for (embedding db credentials into a db url). The example from the docs works but the URL case does not. Given that the word
|
@ebridges, |
Yes I agree. Because I needed this functionality I have simply switched to use |
The argument is already documented but not implemented yet. Fixes joke2k#415
The argument is already documented but not implemented yet. Fixes joke2k#415
This feature will really be never implemented ? |
This one just tripped me up too. Any chance the attached PR will be merged soon? In my case, I'm generating and setting a django secret key, and it ended up randomly starting with |
The argument is already documented but not implemented yet. Fixes joke2k#415
The argument is already documented but not implemented yet. Fixes joke2k#415
The argument is already documented but not implemented yet. Fixes joke2k#415
The argument is already documented but not implemented yet. Fixes #415
This is implemented in #419. Thank you for the report. |
The argument is already documented but not implemented yet. Fixes joke2k#415
The argument is already documented but not implemented yet. Fixes joke2k#415
The argument is already documented but not implemented yet. Fixes joke2k#415
The argument is already documented but not implemented yet. Fixes joke2k#415
The argument is already documented but not implemented yet. Fixes joke2k#415
I did
SECRET_KEY = env('DJANGO_SECRET_KEY')
and got the error:This is becuase my
DJANGO_SECRET_KEY
starts with the dollar sign:There was a number of issues for this problem: #284, #60, #271.
Eventually, #333 somewhat solved the issue by allowing to escape the dollar sign. But this is not the best approach for generated values such as secret keys. The better option would be an ability to disable interpolation altogether. Ideally by default since the behaviour is unexpected.
Interestingly, the
interpolation
flag is described in the docs: https://django-environ.readthedocs.io/en/latest/tips.html?highlight=Proxied%20Values#proxy-value. BUT it's not implemented! This commit introduced the doc. Apparently, the implementation (#145) was not merged and closed in favor of #333. I don't know why. #145 seems like a proper solution.The text was updated successfully, but these errors were encountered: