[Answer]-TemplateDoesNotExist at /home/ – But yes, it's in there

1👍

You forget to add home part of the path. And add comma , to make the TEMPLATE_DIRS a tuple:

TEMPLATE_DIRS = (os.path.join(BASE_DIR, 'home', 'static'), )

But anyway you shouldn’t do it this way. Templates should be in the templates directory. Rename home/static to home/templates and all will work fine even without TEMPLATE_DIRS setting.

Also don’t use render_to_response shortcut. Replace this call with render().

Leave a comment