#7845: ./manage.py reset fails if app does not define models
--------------------------------------+-------------------------------------
Reporter: miracle2k | Owner: nobody
Status: new | Milestone:
Component: django-admin.py | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by miracle2k):
Well, lack of models in an application that you expect to be there seems
like a pretty big error, that surely should surface easily at some other
point. And while I am unable to check check right now, I think I remember
that most of the other commands involving models don't complain either, so
I'd be in line with that behaviour.
I was in fact scripting management when I stumbled on this, iterating over
INSTALLED_APPS and calling call_command'ing "reset". I'm able to
workaround that problem of course by checking with get_app(emptyOK=True)
and get_models() myself, so it's not that big a deal.
--
Ticket URL: <http://code.djangoproject.com/ticket/7845#comment:2>
Django Code <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
-~----------~----~----~----~------~----~------~--~---