[Answer]-Django 500.html on prodserver not showing up – instead 500 Internal Server Error

1👍

by getting the same issue before i simple replace like this :    

import os
TEMPLATE_DIRS = (
    os.path.join(os.path.dirname(__file__),'templates').replace('\\','/'),

)

0👍

correct spelling, Try templates not template?

0👍

A similar error can be caught when using Google app Engine.
True, template should be in plural “templates”
A common mistake is to include the template directory in the yaml file

- url: /templates
  static_dir: templates

If you remove those two lines your code will work just fine assuming that your path is the following:

path = os.path.join(os.path.dirname(__file__), 'templates/home.html')

Leave a comment