Changes between Version 42 and Version 43 of BetterErrorMessages


Ignore:
Timestamp:
Feb 18, 2013, 12:30:37 AM (12 years ago)
Author:
NickAdams
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BetterErrorMessages

    v42 v43  
    11= Better Error Messages =
    22
    3 Good error messages make for more productive developers. This page is 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.
     3Good error messages make for more productive developers. This page is 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.
    44
    55Some of these may seem like quick patches but others will take a bit of consideration -- that's why the wiki page rather than individual tickets. Some are more along the lines of "Django Lint" than simple changes to error output.
     
    104104
    105105If you create a ForeignKey with `blank=True`, but you don't specify `null=True`, and try to save the object without a value for the foreign key, you get this exception:
    106 [http://bit.ly/UXJ87l  ][http://bit.ly/iWCDzp  ][http://bit.ly/UA0cBZ  ][http://bit.ly/XM0rQe  ][http://bit.ly/S0Ziyi  ][http://bit.ly/T4wd38  ][http://bit.ly/U2XEM4  ][http://bit.ly/QfQd68  ][http://bit.ly/QAPH4g  ][http://bit.ly/TkhyVx  ][http://bit.ly/WIlTnG  ][http://bit.ly/TluoBY  ][http://bit.ly/TlunxP  ][http://bit.ly/TluqK8  ][http://bit.ly/10JK6Jm  ][http://bit.ly/XM0NGl  ][http://bit.ly/WIm7Ls  ][http://bit.ly/T4wCTh  ][http://bit.ly/10JKl7t  ][http://bit.ly/TluvgP  ][http://bit.ly/TUqlJ0  ][http://bit.ly/Tb7Dhq  ][http://bit.ly/TkhKUN  ][http://bit.ly/V2Vcdb  ][http://bit.ly/WImjua  ]
    107106
    108107{{{
    109108ValueError: Cannot assign None: "Cat.home" does not allow null values.
    110109}}}
     110[http://bit.ly/UXJ87l  ]
     111[http://bit.ly/iWCDzp  ]
     112[http://bit.ly/UjFzM7  ]
     113[http://bit.ly/UA0cBZ  ]
     114[http://bit.ly/XM0rQe  ]
     115[http://bit.ly/S0Ziyi  ]
     116[http://bit.ly/T4wd38  ]
     117[http://bit.ly/U2XEM4  ]
     118[http://bit.ly/QfQd68  ]
     119[http://bit.ly/QAPH4g  ]
     120[http://bit.ly/TkhyVx  ]
     121[http://bit.ly/WIlTnG  ]
     122[http://bit.ly/TluoBY  ]
     123[http://bit.ly/TlunxP  ]
     124[http://bit.ly/TluqK8  ]
     125[http://bit.ly/10JK6Jm  ]
     126[http://bit.ly/XM0NGl  ]
     127[http://bit.ly/WIm7Ls  ]
     128[http://bit.ly/T4wCTh  ]
     129[http://bit.ly/10JKl7t  ]
     130[http://bit.ly/TluvgP  ]
     131[http://bit.ly/TUqlJ0  ]
     132[http://bit.ly/Tb7Dhq  ]
     133[http://bit.ly/TkhKUN  ]
     134[http://bit.ly/V2Vcdb  ]
     135[http://bit.ly/WImjua  ]
    111136
    112137You could argue that it's obvious, but it's confusing many people:
Back to Top