[Answer]-Unable to host Django app on Google Cloud Platform

1👍

Use the good paths in your wsgi.py file :

import os
import sys
sys.path.append('installdir/apps/django/django_projects/my_new_project')
os.environ.setdefault("PYTHON_EGG_CACHE", "installdir/apps/django/django_projects/my_new_project/egg_cache")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_new_project.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

Don’t forget to reload Apache so that your modifications are taken into account.

Leave a comment