python – TemplateDoesNotExist at / on Heroku while working on local server

New to Django and Heroku;

I get “TemplateDoesNotExist at /” when loading the page. Have read somewhere that it might have something to do with Caps.

My template is called templates.

In :

from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent 
print(BASE_DIR / 'templates')


    'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': (BASE_DIR / 'templates'),
    'APP_DIRS': True,
    'OPTIONS': {
        'context_processors': (



in the error, I get :
“django.template.loaders.filesystem.Loader: /app/Templates/homepage.html (Source does not exist)”

It seems like Heroku doesn’t upload the changes I’ve made to even though I get “Everything up-to-date”

Everybody seems to be using os.path.join but my Pathlib is working correctly (I assume).

Thanks in advance for any help 🙂