[Fixed]-'TemplateDoesNotExist' error with creating Sitemap for Django app

55👍

This is because it’s not finding the default templates.

Make sure 'django.template.loaders.app_directories.load_template_source' is in your TEMPLATE_LOADERS setting, and also make sure that 'django.contrib.sitemaps' is in your INSTALLED_APPS.

👤Mez

6👍

deprecated, latest is: ‘django.template.loaders.app_directories.Loader’,

5👍

You can try removing django.contrib.sites from the INSTALLED_APPS.

Just add the django.contrib.sitemaps.

0👍

There is no need to add django.template.loaders.app_directories.Loader any more.

👤jhd

Leave a comment