Include base project directory in python path for wsgi.py
This commit is contained in:
parent
927933f68e
commit
5e97740f7c
1 changed files with 2 additions and 0 deletions
|
@ -8,8 +8,10 @@ https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "get_together.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "get_together.settings")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue