Comments (4)
@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.
Just for reference: opened a ticket with django-configuraitons: jazzband/django-configurations#53
from cookiecutter-django.
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.
I commented in the configurations issue as well, btw.
from cookiecutter-django.
Related Issues (20)
- Integrate React as the frontend using a hybrid approach. HOT 3
- Webpack deprecation warnings prevent development
- Hybrid local development HOT 6
- Allauth template elements HOT 4
- rabbitmq support for celery HOT 4
- Add `sphinxcontrib-django` for documentation
- ci.yml for running pytest is building docs image unnecessarily (run time 4:30m instead of 3:00m)
- Split the `docs` service out of `local.yml` HOT 2
- You probably don't need `get_user_model` HOT 1
- CI should test against production environment, not local HOT 2
- Allow multiple imports on one line HOT 6
- Incorrect Python version in Docker. HOT 1
- Use Astral's uv for pip installation in Docker + CI HOT 4
- Integrate PostgreSQL 16 Support in Django Cookiecutter HOT 1
- libpq-dev installation is repeated in Dockerfile HOT 1
- Adding django-ninja options to building REST APIs HOT 11
- S3 putObject fails when starting up project: What permissions are required.? HOT 3
- Selecting Whitenoise and AWS as cloud provider overrides STATIC_URL in a way that assumes Collectfast HOT 3
- Adopt Collectfasta HOT 2
- Drop support for runserver_plus & django_extensions HOT 2
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 cookiecutter-django.