2

I had a working page running Django with channels via Nginx, Daphne, Redis, and Gunicorn. After pulling an update from Github my index page now shows "Bad Request (400)" with nothing helpful in the console except for missing favicon. My settings.py has DEBUG = False and ALLOWED_HOSTS = ['AWS_IP']. Can anyone help me figure out what might be causing this?

Rob
  • 58
  • 6
  • To be clear, are you getting this error when running locally or on your server? – Unsolved Cypher Nov 22 '18 at 05:47
  • I am running on my server. Also, after clearing cookies my error has changed to server error (500) – Rob Nov 22 '18 at 06:07
  • Nothing helpful in the console for the 500 error? – Unsolved Cypher Nov 22 '18 at 06:12
  • Only thing in the console is that favicon was not found 404 – Rob Nov 22 '18 at 06:15
  • Also I am now noticing on my local machine that if I set DEBUG = False I start to get 404 errors for my static files. I do not believe it is related as Ngnix handles the static files on the server (and I don't have Nginx to handle it locally). – Rob Nov 22 '18 at 06:20
  • Perhaps this is related to your allowed hosts? You can try to set it to [*] to allow any host, which should tell you whether this is causing the problem or if it's unrelated. – Unsolved Cypher Nov 22 '18 at 06:37
  • I am now having problems on my local computer that I was not having earlier. I think I will just nuke this update and try again. – Rob Nov 22 '18 at 06:38
  • Ah, sorry to hear that. Best of luck! – Unsolved Cypher Nov 22 '18 at 06:38

0 Answers0