Changes between Version 6 and Version 7 of BetterErrorMessages
- Timestamp:
- May 8, 2006, 3:53:14 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BetterErrorMessages
v6 v7 1 1 = Better Error Messages = 2 2 3 Better error messages make everybody work faster.I'm starting this page as a place to collect error messages that could stand improvement, or which are misleading or confusing in certain contexts. Most of us have had the experience of getting a "weird" message, puzzling it out (perhaps with help from django-users or #django) and then moving on. Later it can be hard to remember what the problem was.3 I'm starting this page as a place to collect error messages that could stand improvement, or which are misleading or confusing in certain contexts. Most of us have had the experience of getting a "weird" message, puzzling it out (perhaps with help from django-users or #django) and then moving on. Later it can be hard to remember what the problem was. 4 4 5 5 This is an experiment to see if having a dedicated place to describe these cases as we encounter them can help organize a quality-control effort. Good error messages make for more productive developers. (And it helps newbies be more self-supporting, too.) … … 20 20 '''Suggestion:''' Django can determine whether the DATABASE_ENGINE setting is valid; it doesn't need to ask. 21 21 22 {{{ 23 OperationalError: Unable to close due to unfinalised statements 24 }}} 25 '''Context:''' SQLite file permissions are incorrect (directory or DB file lack write permission)[[BR]] 26 '''Suggestion:''' Check file permissions when running with SQLite backend and warn user if they seem incorrect 27 22 28 == django.contrib.admin == 23 29 24 30 Ticket #1732 -- a problem that elicits no error message, but should. 25 31 26 Ticket #1808 -- omitting the "Admin" internal class in certain situations generates the message `'NoneType' object has no attribute 'get_field_sets'` 32 {{{ 33 'NoneType' object has no attribute 'get_field_sets' 34 }}} 35 '''Context:''' One or more models that are referenced by ForeignKey from another model are missing their inner `Admin` class. Possible other causes as well. See ticket #1808. [[BR]] 36 '''Suggestion:''' Check relevant Admin settings during model validation? 27 37 28 38 == django.core ==