Opened 15 years ago
Closed 15 years ago
#12117 closed (duplicate)
Silently ignoring of import errors in models module.
Reported by: | Grigoriy Petukhov | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.1 |
Severity: | Keywords: | ImportError, exception, import, models | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If I have application which has models.py like:
from foo import Bar # Will raise ImportError ...
and foo package does not exist then manage.py validate
will not report any error message but manage.py syncdb
will not create any table for my application because of import error in the begining of models.py
I think that proper behavior in such case is to report something :-)
Note:
See TracTickets
for help on using tickets.
We already have #11696 tracking this.