Opened 18 years ago
Closed 18 years ago
#2285 closed defect (fixed)
Syncdb doesn't give app name on error
Reported by: | Chris Beaven | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Core (Management commands) | Version: | |
Severity: | minor | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When manage.py syncdb
is run and errors are found (via
django.core.management._check_for_validation_errors
, the app name is not passed so the first error line looks like:
Error: None couldn't be installed, because there were errors in your model:
Either the app names should be passed to _check_for_validation_errors
or the error line should be changed if no app name is passed.
Note:
See TracTickets
for help on using tickets.
(In [3276]) Fixed #2285 -- Tweaked the error message after model errors at "syncdb" time so
that we don't report an app name of "None".