Use Environment Variables in Django - Efficient Way
August 16, 2022
If you stil not use environment variables to configure your Django application - dont wait, do it! I’ll tell you efficient way to use environment variables in the Django’s settings.py file which allows you to set environment variables via the server environment and in the .env file for local development. Installation # You need to install python-decouple package from PyPi. pip pip install python-decouple poetry poetry add python-decouple pipenv pipenv install python-decouple Usage in settings. ...