How to use this moduleΒΆ
It is easy to get started with this module.
First, install this module in your virtual environment or base python installation.
pip install django_envie
At the top of your Django project settings file, add the following code blocks.
from django_envie.workroom import convertfiletovars
import os
convertfiletovars()
If you’re making use of a .yml file for your configuration, call convertfiletovars()
Finally, you can access set environment variables by doing the following in your project settings file.
SECRET_KEY = os.getenv('SECRET_KEY')