2 ms·
So, they figured out they can can use os.environ within the settings.py? Am I missing something?
by silvester23 5y ago
So, they figured out they can can use os.environ within the settings.py? Am I missing something?
- senko 5y agoOP here. You can use whatever you want in settings.py. It's "why" that matters. Yeah, you can boil it down to "use env", but do people know why it's usually the best approach? In my experience, many don't, hence the blog post. I mean, if it were obvious and accepted truth, Django would be doing this by default already.
- leetrout 5y agoThe community writ large is already using django-environ to solve the problems you faced. https://github.com/joke2k/django-environ https://github.com/joke2k/django-environ