I didn't have logging enabled in my settings.py.
Problem solved.
>
>
>
> ---
> % more nginx.conf
>
> server {
> server_name ~^(www\.)?domainname\.(org|co
>
> 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
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
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
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
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.
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
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
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
9 matches
Mail list logo