DEBUG=False running via mod_wsgi on Apache2 gives 500 error

234 views
Skip to first unread message

akaihola

unread,
Mar 5, 2010, 5:57:42 AM3/5/10
to Django FeinCMS
I'm hit by the same issue as the one xyz69 mentions in this thread:
http://groups.google.com/group/django-feincms/browse_thread/thread/1539c03a0fef0348

Looks like he solved it, but I can't claim to entirely understand the
solution (or the problem, for that matter).

So why exactly did his site, and now mine, crash totally when
debugging is turned off? What is it that needs to be done to avoid it?
And could something be done in FeinCMS to avoid the problem altogether
or give the developer a better hint at what is happening?

akaihola

unread,
Mar 5, 2010, 6:04:51 AM3/5/10
to Django FeinCMS
Ah, just noticed a recent very informational thread on the same topic:
http://groups.google.com/group/django-feincms/browse_thread/thread/7d21e66803c117c8

Matthias Kestenholz

unread,
Mar 5, 2010, 6:17:04 AM3/5/10
to django-...@googlegroups.com
On Fri, Mar 5, 2010 at 12:04 PM, akaihola <akai...@gmail.com> wrote:
> Ah, just noticed a recent very informational thread on the same topic:
> http://groups.google.com/group/django-feincms/browse_thread/thread/7d21e66803c117c8
>

Concerning the ImproperlyConfigured exception:

Since v1.0.99, FeinCMS does not raise that many exceptions anymore --
these self checks have been introduced to catch usage errors early,
but they were dependent on the order of modules being loaded which
means they were very fragile. Switching off Django's DEBUG mode causes
model validation not to run, which means that some models files are
imported later than I expected.

Anyway, is it possible for you to update your FeinCMS installation to
current master and test whether you still get an internal server
error?

Thanks
Matthias

Martin J. Laubach

unread,
Mar 6, 2010, 4:38:35 AM3/6/10
to Django FeinCMS
> Anyway, is it possible for you to update your FeinCMS installation to
> current master and test whether you still get an internal server
> error?

Yes, that still happens. I had to paste a bit of code from the debug
case validation in django into my wsgi script to make it work in a
production environment. There's still quite some fragility with
regards to loading order in there...

mjl

demux

unread,
Mar 26, 2010, 7:57:30 AM3/26/10
to Django FeinCMS
I am having this same problem.

Any ideas on how to fix this or at least to just make it work?

ay

Carsten Kraus

unread,
Apr 1, 2010, 9:48:04 AM4/1/10
to django-...@googlegroups.com
Martins approach - using get_validation_errors in the wsgi script - worked for me, as well.




--
You received this message because you are subscribed to the Google Groups "Django FeinCMS" group.
To post to this group, send email to django-...@googlegroups.com.
To unsubscribe from this group, send email to django-feincm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-feincms?hl=en.


Reply all
Reply to author
Forward
0 new messages