IntegrityError at /comments/post/
Hi Sachin,
A few comments from myself:
- The indentation error issue is relatively minor, I'd say - that's a
core Python error, and relatively uncommon (especially if you use a
linter, which I always recommend to people)
- Signals generally can be confusing as they make the control flow
jump around - however, if you're planning to make it more obvious what's
happened, we'd like to see a clear description of what you're going to
improve. The current error page will show you the signal handler towards
the bottom of the traceback, after all.
- Silent template failure is a deliberate design decision in Django,
though it was made many years ago - the idea was that a template editor
couldn't write a template that crashed the site. If you're planning to
change that, you'll need to have good reasoning why and backwards
compatability worked out for all the applications that rely on this
behaviour (some people rely on it and don't realise it - you'll break a
lot of sites if you just change the errors in there to be page-breaking).
I'd recommend you have a look through the
https://code.djangoproject.com/wiki/BetterErrorMessages page in
particular and look at some of the ideas in there - as each particular
area is quite small in scope, we'd be looking for a decent number of
error fixes to form a GSOC proposal that would be considered enough
work. There's some more meaty errors to fix in django.db, for a start.
Andrew
OperationalError: Unable to close due to unfinalised statements
> Could you guide me what number of error fixes would be good work for
> GSOC proposal. Also if there are any class of Django errors that are of
> greater concern (like django.db)
There's no clearly defined "number" that would be good - we'll be
looking at your schedule that's on the proposal, instead, to make sure
that you've scheduled the fixes with the right amount of time and that
you've got enough work.
As for which ones are of greater concern, that's a difficult question to
answer - everyone has their own "favourite" (my particular nemesis is
the Postgres transaction-is-aborted one). I'd suggest looking through
django-users, StackOverflow, etc., to get an idea of what's tripping
people up the most.
> For the error message
>
> OperationalError: Unable to close due to unfinalised statements
>
> The context is not correct. I tried using a file that does not have write permission for sqlite3, but the error that came up is not what is listed above. The error message was quite appropriate in this case
>
> django.db.utils.DatabaseError: attempt to write a readonly database
>
> So is there something which I am not getting correctly?
I'm not sure - I've never had that one myself. It might have only been
with a previous version of the sqlite library or Python binding - have a
look through the history on the wiki page to see when it was put in
there, and by whom.
Andrew
TypeError at ... string indices must be integers
Well, is that error possible to detect sensibly? These tiny questions
aren't what you should be asking now - we really want to see a
well-rounded application with a list of what you plan to tackle (it
doesn't have to be precise, just state the main problem areas), and a
demonstration of some possible ways you might solve it.
Attempting to pick the errors and the correct solutions now is too
fragile - if it turns out those errors are hard to fix, or the potential
error you want to raise isn't working for whatever reason (perhaps it
interrupts the call stack of something else), you'll need to work around it.
We want to see the ability to think independently in an application -
your mentor isn't there to continually answer questions for you, they're
there to check up on your progress now and again and answer the
occasional design decision/gnarly core Django question. The ability to
work independently, make good decisions and research/justify them well
is a big part of GSOC, and something we're looking for.
Andrew