Our great sponsors
-
My trick is to place all my tricks in a GitHub repo that I can simply fork or copy 😄 from https://github.com/betaflag/django_dx
-
I used to do this but recently switched to using environment variables and now prefer this approach. Essentially you keep the single settings.py file that is generated with startproject, and use os.environ or os.getenv to set certain settings. Check out the FeedHQ settings.py for an example. I use direnv to automatically set my environment variables on my local machine, but django-environ is a popular alternative.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
django-environ
Django-environ allows you to utilize 12factor inspired environment variables to configure your Django application.
I used to do this but recently switched to using environment variables and now prefer this approach. Essentially you keep the single settings.py file that is generated with startproject, and use os.environ or os.getenv to set certain settings. Check out the FeedHQ settings.py for an example. I use direnv to automatically set my environment variables on my local machine, but django-environ is a popular alternative.
Related posts
- What is your development cycle when using docker and containers? What's the general flow between developing locally and running the containers to test.
- Processing input and letting user download the result
- How big is generally your docker image ?
- Django Docker Containers and good example projects
- Django Deployment - Postgres DBaaS