[Solved] Django websites not loading


The problem isn’t having multiple websites, using mod wsgi or even using Windows. The actual problem is the database. For some reason (no idea why) the default database becomes corrupt.

The solution was for me to switch to MySQL from the default database. I’m not entirely sure why the default database becomes corrupt.

This is what you can do if you want to switch to MySQL.

Inside of your settings.py find DATABASES and make it this.

DATABASES = {
'default': {
    'ENGINE'  : 'django.db.backends.mysql', # <-- UPDATED line 
    'NAME'    : 'DATABASE_NAME',                 # <-- UPDATED line 
    'USER'    : 'USER',                     # <-- UPDATED line
    'PASSWORD': 'PASSWORD',              # <-- UPDATED line
    'HOST'    : 'localhost',                # <-- UPDATED line
    'PORT'    : '3306',
}
}

See this for more information: Django website fails to load after request

solved Django websites not loading