[Fixed]-Template does not exist: 500.html

11πŸ‘

βœ…

You might need to specify the template directories in settings.py, if you haven’t already.

e.g. in my settings.py, I have:

ROOTDIR = os.path.abspath(os.path.dirname(__file__)) 
TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
    ROOTDIR + '/logistics/templates',
)
πŸ‘€kafuchau

5πŸ‘

Try to set
DEBUG=True in your settings file

0πŸ‘

You need to update your "Templates" configuration in your setting file like the below:
enter image description here

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': ['templates'],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

Worked for me.

Leave a comment