from .settings import *
from .celeryconfig import *

@@ -1,27 +1,579 @@
-from .settings import *
+try:%0A    import os%0A    # Load the .env file in the project root and set them as system properties.%0A    # This is useful when you want to run the django server (or tools) without Foreman.%0A    curfile = os.path.abspath(os.path.dirname(__file__))%0A    with open(curfile + '/../../.env') as f:%0A        for line in f:%0A            line = line.strip();%0A            if len(line) %3E 0 and not line.startswith('#'):%0A                index = line.index('=')%0A                key = line%5B0:index%5D%0A                value = line%5Bindex+1:%5D%0A                os.environ%5Bkey%5D = value%0Aexcept:%0A    pass
 %0Afro
@@ -597,8 +597,31 @@
 mport *%0A
+from .settings import *

load .env variables file when exist, to skip Foreman when developing