To fix Python Django TemplateDoesNotExist error, we can register the template directories in our app.
For instance, in settings.py, we add
TEMPLATE_DIRS = (
os.path.join(SETTINGS_PATH, 'templates'),
)
to register the templates
directory as the directory with the templates.