djcompiler icon indicating copy to clipboard operation
djcompiler copied to clipboard

Environment File Not Being Found

Open AbbasSrour opened this issue 2 years ago • 1 comments

I know this is mostly not specifically related to djcompiler, but I thought I'd give it a try, after compiling the django backend that has an .env file in the main app directory (the one that contains the settings) it outputs that it didn't find the .env file in the terminal, and when running the server it doesn't seem to read the environment variables from the file even though I copied the .env to the build directory. Can you confirm if this is an error on my side or on the side of cython?

AbbasSrour avatar Feb 16 '23 18:02 AbbasSrour

it should work if you have .env file in required files in .djcompiler file or djcompiler.py depends on if you use .djcompiler file or py file please share more details about that like the .djcompiler and the files in the build directory.

abdoohossamm avatar Feb 17 '23 02:02 abdoohossamm