Since you are discussing and applying different features,
I think it's time to ask what do you think of the subj.
It's at http://code.djangoproject.com/ticket/11834
It adds some helpful color beauty to django 500 output.
Sample pictures are here:
http://code.djangoproject.com/attachment/ticket/11834/11834.png and
http://code.djangoproject.com/attachment/ticket/11834/11834_2.png
I'm not a designer, so feedback is highly appreciated.
Also I don't know if the enhancement needs any docs writing or any
other work. Please advise.
--
Best regards, Yuri V. Baburov
Hi All,
Since you are discussing and applying different features,
I think it's time to ask what do you think of the subj.
It's at http://code.djangoproject.com/ticket/11834
It adds some helpful color beauty to django 500 output.
Sample pictures are here:
http://code.djangoproject.com/attachment/ticket/11834/11834.png and
http://code.djangoproject.com/attachment/ticket/11834/11834_2.png
I'm not a designer, so feedback is highly appreciated
I'm going to echo the tune of others in this thread - coloring
internal code sounds like a good idea, but the current color selection
isn't really appropriate.
> Also I don't know if the enhancement needs any docs writing or any
> other work. Please advise.
No - this is just a styling change, so no docs or tests are required.
Yours,
Russ Magee %-)
On Tue, Nov 3, 2009 at 9:27 AM, Tobias McNulty <tob...@caktusgroup.com> wrote:
> I'm not a big fan of the red/green either. They imply that Django code is
> "bad" and user code is "good".
The opposite, in fact.
Django code is green, "good", user code is red, "untrusted".
--
Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov,
MSN: bu...@live.com
On Tue, Nov 3, 2009 at 9:27 AM, Tobias McNulty <tob...@caktusgroup.com> wrote:The opposite, in fact.
> I'm not a big fan of the red/green either. They imply that Django code is
> "bad" and user code is "good".
Django code is green, "good", user code is red, "untrusted".
Actually, they current colors look an awful lot like diffs as they are
displayed by on various sites (green lines added, red lines removed).
In fact, at first glance, that's what I thought I was looking at. One
more reason to change the colors I suppose.
--
----
\X/ /-\ `/ |_ /-\ |\|
Waylan Limberg
> One thing I ran into, though, is wanting to be able to assign colors
> to various 3rd party libraries that I'm also using.
> So for instance, giving MySQLdb it's own non-mine, non-Django color,
> so I can note DB related problems easier.
> That probably opens up a big configuration can of worms; I haven't had
> the time yet to code up a patch myself.
Well, I thought about this, the situation is like everywhere -- you
write simple improvement, people tell you "let's go further" and they
suggest more enhancements :)
I think, the only good alternative is subclassing an ExceptionReporter
class and being able to choose your alternative with one-liner, say,
in configuration.
I'll propose new patch.
By the way, django_extensions app does the following:
# usurp django's handler
from django.views import debug
debug.technical_500_response = null_technical_500_response
for their purposes.
is it point of extension? or is monkeypatching ok here?