Help - Bad Request(400) on start application #513

rgarbin opened this Issue Oct 30, 2015 · 2 comments


None yet

3 participants

rgarbin commented Oct 30, 2015


python syncdb --all
python migrate forum
python runserver

➜ osqa git:(master) ✗ sudo python runserver
Validating models...

0 errors found
October 30, 2015 - 06:39:35
Django version 1.6, using settings 'settings'
Starting development server at
Quit the server with CONTROL-C.
[30/Oct/2015 06:39:47] "GET / HTTP/1.1" 400 26
[30/Oct/2015 06:39:56] "GET / HTTP/1.1" 400 26
[30/Oct/2015 06:39:56] "GET / HTTP/1.1" 400 26

[30/Oct/2015 06:39:56] "GET / HTTP/1.1" 400 26

Exception happened during processing of request from ('', 39976)
Traceback (most recent call last):
File "/usr/lib/python2.7/", line 599, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python2.7/dist-packages/django/core/servers/", line 126, in init
super(WSGIRequestHandler, self).init(_args, *_kwargs)
File "/usr/lib/python2.7/", line 655, in init
File "/usr/lib/python2.7/wsgiref/", line 116, in handle
self.raw_requestline = self.rfile.readline(65537)
File "/usr/lib/python2.7/", line 480, in readline
data = self._sock.recv(self._rbufsize)
timeout: timed out

zemien commented Nov 17, 2015

I installed OSQA via Bitnami and saw this error message after installation. I then realised that the installer took me to, while during installation I specified my machine name as the host name. I browsed to my host name instead, and I could access OSQA.

There is also a logs folder in the OSQA app folder, if the above doesn't help.


you should add your localhost address to ALLOWED_HOST in settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment