Monday, December 28, 2015

Re: Django debug= false throwing 503 error

Thanks for your message.

On Production, I am running the server behind Nginx. Its run using uwsgi. The server works fine with "DEBUG=True" but when it's set to false, it throws http 503 error. I saw it in uwsgi logs. Also, when I ran the server locally with ./manage.py runserver, its on the console.

Thanks.

On Monday, December 28, 2015 at 3:01:39 PM UTC+5:30, aRkadeFR wrote:
Hello,

How do you run your server in production?
Where do you see the server throwing the 503 error?

Thanks,

On 12/28/2015 09:46 AM, Web Architect wrote:
Hi,

I have set the following in settings.py for our production system:

DEBUG=False

ALLOWED_HOSTS = ['*'] (in fact any value is not working)

The server is throwing "HTTPError = 503". 

There are no logs and I am clueless about the reason for the error. I tried searching the net and looking into DJango documents but couldn't find the possible reason.

Django version is 1.8.3. 

Would really appreciate if anyone could help with the above.

Thanks.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a3a76d7c-438c-442d-a68b-3d31859b4708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--   aRkadeFR

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ccd569ad-e8a4-4670-a0b9-47d494f5847e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment