Re: Why get "Server Error 500" instead of 404 template?

2017-12-11 Thread Chris Seberino
I didn't have logging enabled in my settings.py. Problem solved. > > > > --- > % more nginx.conf > > server { > server_name ~^(www\.)?domainname\.(org|co

Re: Why get "Server Error 500" instead of 404 template?

2017-12-11 Thread Chris Seberino
> > For more information, you need to show us your nginx configuration and > your wsgi server configuration. > > > Thanks a million. Here is what you asked for... --- % mor

Re: Why get "Server Error 500" instead of 404 template?

2017-12-11 Thread Antonis Christofides
Hello, Usually when you get a mere "Server error 500" without it showing you the Debug page though you have DEBUG=True, this means that the error occurs very early, before Django has had the opportunity to run. In that case, the error should have been logged in the gunicorn/uwsgi/whatever log, i.e

Why get "Server Error 500" instead of 404 template?

2017-12-10 Thread Chris Seberino
I cannot track down why 404 page isn't being used. I can't get any help from syslog or Nginx log files. I tried adding DEBUG=True to settings.py and still no clues. I only get "Server Error 500". Here is settings.py TEMPLATES= [{"BACKEND" : "django.template.backe

Getting internal server error 500 instead of 404, may be related with django-compressor?

2013-05-27 Thread Xavi
I'm using Django with Apache web server. If I put DEBUG=True Django serves 404 debug errors without problem. But when I put DEBUG=False Apache is returning a 500 internal server error when it catch a 404 error. This causes Django to not serve my 404 template (/templates/404.html) and visitor se

Re: Error 500 instead of 404

2011-11-20 Thread Ricardo F. Teixeira
Solved (!) by creating those template files. Thanks Tomek! On Nov 20, 9:28 am, Tomek Paczkowski wrote: > If you dont have 404.html file, than Django will raise exception that > 404.html is not found. Next, if you dont have 500.html your exception is > generating new exception on lack of 500.html.

Re: Error 500 instead of 404

2011-11-20 Thread Tomek Paczkowski
If you dont have 404.html file, than Django will raise exception that 404.html is not found. Next, if you dont have 500.html your exception is generating new exception on lack of 500.html. Make sure you have both files. Eg: $ touch templates/{404,500}.html -- You received this message because

Re: Error 500 instead of 404

2011-11-20 Thread Nick Apostolakis
On 20/11/2011 07:56 πμ, Ricardo F. Teixeira wrote: Hello everybody! I'm having a strange error. I already searched for this error and there's quite a lot of discussion about it. But I didn't find a proper answer that fits me. So... when I set DEBUG to True and access an invalid URL Django return

Error 500 instead of 404

2011-11-19 Thread Ricardo F. Teixeira
Hello everybody! I'm having a strange error. I already searched for this error and there's quite a lot of discussion about it. But I didn't find a proper answer that fits me. So... when I set DEBUG to True and access an invalid URL Django returns me a 404 error page, but if I set DEBUG to False it