1๐
โ
As a last resort, you should try to append absolute paths to your sys.path, inside your wsgi.py file.
import sys
import os
sys.path.append('path/to/mydjango')
# sys.path.append('path/to/mydjango/mydjango')
# more as needed.
And then the usual :
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mydjango.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Once you get it up and running, you can start replacing absolute paths with relative ones (or if confident, do so from beginning).
Hope this helps,
Regards,
๐คAmbroise
Source:stackexchange.com