#19390: NameError in models throws ambiguous message when running syncdb
----------------------------------------------+------------------------
Reporter: dloewenherz | Owner: nobody
Type: Bug | Status: new
Component: Database layer (models, ORM) | Version: 1.5-beta-1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+------------------------
When I start a Django 1.5 repo and forget to import a required library, I
get a very ambiguous error when running ./manage.py syncdb
My models.py
{{{
from django.contrib.auth.models import AbstractBaseUser
class Example(db.Model):
pass
}}}
{{{
$ ./manage.py syncdb
NameError: name 'db' is not defined
}}}
The file path where this error occurs should probably be noted to users. I
can imagine it getting tough to track down when in a large project with
lots of apps.
--
Ticket URL: <https://code.djangoproject.com/ticket/19390>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.