Forums

Django deployment problem

Greetings. A noob here. Cloned my project from Github, put in WSGI configuration file:

import os import sys

path = '/home/rsmacau/RSMACAU/myproject' if path not in sys.path: sys.path.append(path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'

from django.core.wsgi import get_wsgi_application application = get_wsgi_application()

Doesn't work. I set Debug=True in settings.py, and see: TemplateDoesNotExist at / home.html. My templates folder is in /home/rsmacau/RSMACAU/myproject but it looks like it's being looked in:

django.template.loaders.filesystem.Loader: /home/rsmacau/templates/home.html (Source does not exist)

Everything works on my local, but not on pythonanywhere. Please help.

On the web app page, set the source code property to /home/rsmacau/RSMACAU/myproject