Skip to content
Advertisement

Django websites not loading

I have two Django websites on one server using Apache with mod_wsgi on Windows 10. For some reason the Django websites don’t load, however, I have a normal website that does. I’ve had it work in the past when I was using one, but I had to change some stuff to make two work.

Here are my urls.py

1

JavaScript

2

JavaScript

Front.urls

JavaScript

Here are my config files and WSGI files for both websites, thank you

Django Error log https://pastebin.com/ePmA3sau

WSGI 1

JavaScript

WSGI 2

JavaScript

My Vhosts

JavaScript

My Apache Config

JavaScript

Error logs: https://pastebin.com/grWmgvS8

Advertisement

Answer

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.

JavaScript

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

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement