#11308: Django ignores an application if it's trying to import a module that doesn't exist ---------------------------------------------------+------------------------ Reporter: rynoinstereo | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: 1.0 Resolution: | Keywords: Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Changes (by russellm):
* needs_better_patch: => 0 * component: Testing framework => Database layer (models, ORM) * needs_tests: => 0 * milestone: 1.1 => * needs_docs: => 0 * stage: Unreviewed => Accepted Comment: This is certainly annoying, but it isn't critical for v1.1 as it doesn't cause data loss. The problem is that we are a bit enthusiastic eating ImportErrors during the loading process. There is a legitimate reason for catching ImportErrors; they are a byproduct of the the app loading process. However, errors such as this one should be raised to the user, rather than being eaten entirely. Explicit reproduction instructions: Create a new application called 'testapp', and add it to settings.py. Put the following in testapp/models.py: {{{ from django.db import models from django.contrib.auth.models import NotAModel class NewModel(models.Model): name = models.CharField(max_length=200) }}} manage.py validate doesn't report errors; manage.py syncdb doesn't report any problems, but doesn't create the testapp_newmodel table, either. -- Ticket URL: <http://code.djangoproject.com/ticket/11308#comment:1> 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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---