We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb3f898 commit 7cc968fCopy full SHA for 7cc968f
project/manage.py
@@ -4,10 +4,11 @@
4
import sys
5
6
import environ
7
+ROOT_DIR = environ.Path(__file__) - 1
8
9
if __name__ == "__main__":
- if os.path.isfile('.env'):
10
- environ.Env.read_env('.env')
+ if os.path.isfile(str(ROOT_DIR + '.env')):
11
+ environ.Env.read_env(str(ROOT_DIR + '.env'))
12
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
13
14
from django.core.management import execute_from_command_line
0 commit comments