Forums

bad request 400

I just purchased a domain name in namecheap and I have set up the CNAME(Alias). In my account web part, No note saying CNAME incorrect, so I am assuming CNAME has been set up correctly

However, when I go to my domain name, bad request 400 happened and in the error log: it says 2015-07-20 15:55:46,501 :OSError: write error 2015-07-20 15:55:46,502 :RuntimeError: generator ignored GeneratorExit

Thanks; Edward

Hi there -- the site seems to be up and running now -- did you find out what the problem was?

Hi there,

Which version of django are you using? Our default for Python 3 is django 1.6. If you meant to use a more recent version (like the latest, 1.8), then there can be incompatibilities between the settings.py file.

The solution is to use a virtualenv. There's a guide here: https://www.pythonanywhere.com/wiki/VirtualEnvForNewerDjango