Skip to content

Commit dd190c5

Browse files
committed
Fixed wsgi.py to solve path for djangoprojectjp.settings
1 parent b8b7c4e commit dd190c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

djangoprojectjp/wsgi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
from __future__ import unicode_literals
22

33
import os
4+
import sys
45

56
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
7+
sys.path.append(os.path.abspath(os.path.join(PROJECT_ROOT, "..")))
68
settings_module = "%s.settings" % PROJECT_ROOT.split(os.sep)[-1]
79
os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
810

0 commit comments

Comments
 (0)