Giter Club home page Giter Club logo

Comments (5)

fdemmer avatar fdemmer commented on June 26, 2024 3

related:

@sergeyklay could you please cut a release with this change?

from django-environ.

kevinrenskers avatar kevinrenskers commented on June 26, 2024 2

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.

Ronjea avatar Ronjea commented on June 26, 2024 1

I had the same issue today thanks for reporting @alexkiro !

from django-environ.

kevinrenskers avatar kevinrenskers commented on June 26, 2024 1

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:

  1. 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.
  2. https://github.com/jazzband/dj-database-url to parse a database URL into Django's config dictionary

from django-environ.

biiit avatar biiit commented on June 26, 2024

Yes, I can confirm the same problem.

from django-environ.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.