os.environ.get() not working
isaiah08

I know that you can't see the .env file, but here is what is in it:
LOGGED_IN=2395132678
LOGGED_OUT=9502193029
SECRET_KEY=fj3ifjdkjeVjsdkfj
DB_KEY=%jjs9fjjkjk34Fksl3
I made two .env files: one in the python directory, and one in the root directory. When you go to the /login route on the site, it gives an error that the secret key has not been configured. But in python/config.py, i configured it! Why doesn't it work?

You are viewing a single comment. View All
Coder100

The .env file is only read in the root directory, a bug not a feature.

Oh yeah, also:

the preferred way (r)

isaiah08

Changed it, still doesn't work. @Coder100

19wintersp

@Coder100

a bug not a feature

What?

Coder100
isaiah08

I fixed it! I just had the secret key configured in swallow.py.
@Coder100