Ask coding questions

← Back to all posts
.env file problem
AarohanSaha (0)

I am trying to code something and i am not able to create an enviorment file. Please tell me why or how to create one or why i cant create one. Thank you.

Bookie0 (6260)

You can't make .env files anymore, you'll have to use this new GUI by clicking the lock icon in the sidebar (near where the files are kept). Then you just enter the name of a key and its value. And in the repl, you do import os, and my_secret = os.environ['name of your key here']. Good luck! :)