Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-25 Thread Graham Dumpleton
On Sep 25, 10:58 am, shacker <[EMAIL PROTECTED]> wrote: > On Sep 24, 4:34 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > If however you have used in Apache configuration the ErrorDocument > > directive for 404 at some point, possibly by enabling multi language > > custom error documents

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-24 Thread shacker
On Sep 24, 4:34 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > If however you have used in Apache configuration the ErrorDocument > directive for 404 at some point, possibly by enabling multi language > custom error documents, then when the 404 occurs, rather than > returning an internally ge

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-24 Thread Graham Dumpleton
On Sep 25, 7:38 am, Ross Dakin <[EMAIL PROTECTED]> wrote: > Graham, > > I am using Apache andmod_wsgi, and I have experienced that issue > before (500 errors for 404, et al.). > > I fixed it with some tinkering, but don't remember how.  Would you > mind explaining this problem a little? Consider

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-24 Thread Ross Dakin
Graham, I am using Apache and mod_wsgi, and I have experienced that issue before (500 errors for 404, et al.). I fixed it with some tinkering, but don't remember how. Would you mind explaining this problem a little? Thanks, Ross On Sep 23, 5:08 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote:

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Graham Dumpleton
How are you hosting Django? It would help to know if you are using builtin development server or whether you are hosting under Apache using mod_python or mod_wsgi. If under Apache then use of certain Apache configuration settings can cause 500 errors to be returned instead of 404 errors. No point

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Ramiro Morales
On Tue, Sep 23, 2008 at 1:36 PM, h <[EMAIL PROTECTED]> wrote: > > I suspect you have something like this in your urls.py and your static > media is not being served > > > if not settings.DEBUG: >urlpatterns += patterns('',(r'^media/(.*)$', > 'django.views.static.serve', {'document_root': setti

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread h
I suspect you have something like this in your urls.py and your static media is not being served if not settings.DEBUG: urlpatterns += patterns('',(r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),) On Sep 23, 5:29 pm, "Karen Tracey" <[EMAIL PROTECTED]

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 12:14 PM, Huuuze <[EMAIL PROTECTED]> wrote: > > There are no tracebacks in this instance. I can see the non-descript > 500 errors appearing in my terminal window. > I don't understand. Are you saying you have configured ADMINS, etc. in settings.py so that 500 error trace

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Huuuze
There are no tracebacks in this instance. I can see the non-descript 500 errors appearing in my terminal window. On Sep 23, 12:06 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 11:53 AM, Huuuze <[EMAIL PROTECTED]> wrote: > > > I'm preparing to deploy my Django app and I

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 11:53 AM, Huuuze <[EMAIL PROTECTED]> wrote: > > I'm preparing to deploy my Django app and I noticed that when I change > the "DEBUG" setting to False, all references to static files (i.e., > JavaScript, CSS, etc..) result in HTTP 500 errors. > > Any idea what's causing that

Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Huuuze
I'm preparing to deploy my Django app and I noticed that when I change the "DEBUG" setting to False, all references to static files (i.e., JavaScript, CSS, etc..) result in HTTP 500 errors. Any idea what's causing that issue (and how to fix it)? --~--~-~--~~~---~--~--