404 and 500 errors in django
Problem: Server Error 500. In the server log, all it mentions is a line that looks something like "GET / HTTP/1.1" 500 27 Potential fix: There are two potential reasons for this error. Ensure that ALLOWED_HOSTS is configured properly in the settings file. In the default settings file, there's a line for ALLOWED_HOSTS=[]. In my case, I was deploying things locally, so I edited this line to be ALLOWED_HOSTS=['127.0.01','localhost']. If you're deploying things on a specific domain, list that here. Others have suggested using ALLOWED_HOSTS=['*'], but this setting should really only be used for testing deployments, as it's not…Read more …