Forums

source does not exist in templates but is on the disk in correct location

Template-loader postmortem Django tried loading these templates, in this order:

Using engine django:

django.template.loaders.filesystem.Loader: /home/ramfolio/portfolio/TEMPLATES/main.html (Source does not exist) django.template.loaders.app_directories.Loader: /home/ramfolio/.virtualenvs/blog/lib/python3.8/site-packages/django/contrib/admin/templates/main.html (Source does not exist) django.template.loaders.app_directories.Loader: /home/ramfolio/.virtualenvs/blog/lib/python3.8/site-packages/django/contrib/auth/templates/main.html (Source does not exist) Traceback Switch to copy-and-paste view

It looks like your web app is trying to use a broken virtual environment (web app is set up to use Python 3.7 and in traceback you have python3.8) -- I'd suggest recreate the venv with correct Python version and reload the web app.