Python Créer une variable d'environnement
import os
os.environ['variable_name'] = 'variable_value'
Creepy Cardinal
import os
os.environ['variable_name'] = 'variable_value'
$ pip install python-decouple
# to add specific key value to environment externally.
$ export SECRET_KEY='key_value'
from decouple import config
DEBUG=False python manage.py
DEBUG = config('DEBUG', default=True, cast=bool)