[Django]-ModuleNotFoundError: No module named 'django.templates'

6👍

There is no path like django.templates but django.template (without s). I am not sure how that comes to django.templates in your settings since it is auto-generated by the Django itself.

So, change anything that referes django.templates to django.template will solve the problem.

👤JPG

0👍

In settings.py you can remove s from:

'BACKEND': 'django.templates.backends.django.DjangoTemplates',

So it will be:

'BACKEND': 'django.template.backends.django.DjangoTemplates',

Just this.

Leave a comment