Django Server Error (500)

First of all setup error reporting via email, I used gmail in this example.
You will neeed to put lines in your settings.py:

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'youruser@gmail.com'
EMAIL_HOST_PASSWORD = 'yourpassword'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

Reload the page with 500 error and check e-mail.

Common errors are:

1. ALLOWED_HOSTS = [‘yourwebsite.com’] # here you need to include hosts to allow
2. Check if you have included “staticfiles” app in:

INSTALLED_APPS = (
    'django.contrib.auth',
    .
    .
    'django.contrib.staticfiles',

Leave a Reply

Your email address will not be published. Required fields are marked *


*