Answers for "using .env python"

0

env variables python .env

import os

print(os.environ.get('TYPE'))
print(os.environ.get('PORT'))
Posted by: Guest on June-07-2021
1

python env

python3 -m venv tutorial-env
tutorial-envScriptsactivate.bat (window)
source tutorial-env/bin/activate (linux)
Posted by: Guest on September-11-2020
1

create a virtualenv python3

py -m venv env
Posted by: Guest on August-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language