Skip to content
Sign upLog in
← Back to Community

I am not able to create an .env file?

Profile icon
Lewisdebug

It shows "you cannot create .env files anymore, check out the environmental variable sidebar.

Voters
Profile icon
OmkarParhad
Profile icon
Iforgorprogramm
Profile icon
aryan697
Profile icon
ostOfficial
Profile icon
SashaLeuwer
Profile icon
thomasparemo
Profile icon
camusalfonso
Profile icon
JohnSherman1
Profile icon
Xelash
Profile icon
mayaamilka
Comments
hotnewtop
Profile icon
Bookie0

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! :)
Screen Shot 2021-04-15 at 8.08.10 PM

Profile icon
RoBlockHead

Yes, they have deprecated the .env “file”. To create secrets, go to the padlock icon on the left side of your screen.

Profile icon
IvanVaisbart

ok