Giter VIP home page Giter VIP logo

Comments (4)

pydanny avatar pydanny commented on May 22, 2024

@schacki Alas, there are no workarounds for this issue, and it's one reason (of several) why we used to lean so heavily on the local_settings.py anti-pattern. While Apache does have environment variables (http://httpd.apache.org/docs/2.2/env.html), they don't serve the same purpose.

In Two Scoops of Django 1.6 we address the issue via the use of a secrets file in json, config, yaml, etc formats, rather than an unversioned python module.

Are we happy about this? Heck no. We wish we could provide a fix for this, but that's beyond our capacity: Apache, as far as I know, just works this way.

Pitching this downstream, what might be interesting is if a package like @jezdez's django-configurations could enhanced to support loading a secrets module. That would be interesting to see, but perhaps out of scope for his project.

Speaking of scope, because this is possibly in the domain of django-configurations, and definitely in the domain of Apache itself, I'm closing this as an issue. If a downstream solution emerges that almost/nearly seamlessly works with this project, I'll be happy to incorporate it in.

from cookiecutter-django.

schacki avatar schacki commented on May 22, 2024

Just for reference: opened a ticket with django-configuraitons: jazzband/django-configurations#53

from cookiecutter-django.

jezdez avatar jezdez commented on May 22, 2024

Thanks for raising this issue, Apache with mod_wsgi is indeed still important enough to consider fixing this by documenting workarounds.

@pydanny I think it's reasonable to think about a contrib package inside of configurations that has extended features like an improved version of the SecretValue class (http://django-configurations.readthedocs.org/en/latest/values/#configurations.values.SecretValue). E.g. a KeyringValue that uses the keyring library for secure cross-platform data storage (https://pypi.python.org/pypi/keyring/3.5).

from cookiecutter-django.

jezdez avatar jezdez commented on May 22, 2024

I commented in the configurations issue as well, btw.

from cookiecutter-django.

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.