Comments (5)
related:
@sergeyklay could you please cut a release with this change?
from django-environ.
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:
SECRET_KEY="=w)yz1-tbmj)dpskj&#n25##)88l%n2p8#wiw)d5db9@mb#g18"
And when using the latest django-environ our SECRET_KEY in Django is "=w)yz1-tbmj)dpskj&
(yes, that includes the double quote!).
from django-environ.
I had the same issue today thanks for reporting @alexkiro !
from django-environ.
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:
- https://github.com/theskumar/python-dotenv, which loads an .env file into Python's environment (after which values are loaded with Python's built-in
os.getenv
). No values are parsed, strings with hashtags don't get broken. - https://github.com/jazzband/dj-database-url to parse a database URL into Django's config dictionary
from django-environ.
Yes, I can confirm the same problem.
from django-environ.
Related Issues (20)
- Officially support Django 4.2 and Python 3.12 on PyPI HOT 1
- Ask for next release HOT 1
- v0.11.0 Introduces parsing error for strings containing more than one $ symbol HOT 6
- v0.11.1: $-symbol issue HOT 5
- v0.11.0/ v0.11.1 breaks on Mac OSX HOT 1
- UserWarning: Engine not recognized from url : sqlite3 HOT 3
- Path issues with read_env since 11.0+ HOT 11
- Simplicity and Stability vs Advanced Features HOT 2
- Hash sign inside double quotes is interpreted as the start of a comment HOT 5
- Deprecated Code from python 2.x to 3.x HOT 1
- db_url() fail with oracle dsn
- db support for CockroachDB HOT 1
- Wrong missing environment variable name if using prefix HOT 1
- Django's RedisCache OPTIONS needs to be lowercase
- ModuleNotFoundError: No module named 'environ'
- Support new db option `pool` in Django 5.1
- Restore defaults in .env HOT 6
- DeprecationWarning: 'pkgutil.find_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead on 3.12 HOT 1
- Does the option to disable interpolation even work?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-environ.