#10706: Incorrect error from manage.py sql when app fails to load
--------------------------------------+-------------------------------------
Reporter: Glenn | Owner: nobody
Status: new | Milestone:
Component: django-admin.py | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 1 |
--------------------------------------+-------------------------------------
Comment (by Annatar):
I was a victim to this error message too. I reached desperation trying to
figure out where did I do wrong in my settings.py file or in the folder
where the new app resided. But it seems that there wasn't anything wrong
with settings.py or the app folder in that respect. it was just a typing
error within the modules.py file of the app.
it was something like:
from django.db import models
from django.contrib.auth.models import User
from Projectname.another_app.models import SomeModel #for foreign key
usage
...and the new models defined here...
And instead of Projectname I should have typed ProjectName (silly error,
but gave me quite a headache, because it's obscure)
Now I'm puzzled why Django only throws the correct errors only from the
model classes and not from the starting declarations too. An error there
tells me that the whole app is missing from settings.py, which is not
true.
--
Ticket URL: <http://code.djangoproject.com/ticket/10706#comment:13>
Django <http://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 this group at
http://groups.google.com/group/django-updates?hl=en.