set env variable pycharm code example
Example: how to set environment variable in pycharm
Open PyCham --> Run Configuration --> Edit Configurations --> Right side you will get the -->EnvFile -->Enable EnvFile
# Bellow click on + icon.
# locate file_name.env file in your project
# Now save the configurations. and don't forgot the move that configuration to top