Ticket #1079 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

syncdb fails if app dos not contain models

Reported by: aistis.jokubauskas@… Owned by: andrew
Priority: major Milestone: 1.0
Component: commands Version: 0.7.5
Keywords: Cc:


With django 1.4 south syncdb fails if app does not contain models.


$ manage.py syncdb
Traceback (most recent call last):
  File ".../virtual/bin/lettuce_manage", line 59, in <module>
  File ".../djangorecipe-1.2.1-py2.7.egg/djangorecipe/manage.py", line 19, in main
  File ".../Django-1.4-py2.7.egg/django/core/management/__init__.py", line 459, in execute_manager
  File ".../Django-1.4-py2.7.egg/django/core/management/__init__.py", line 382, in execute
  File ".../Django-1.4-py2.7.egg/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ".../Django-1.4-py2.7.egg/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File ".../Django-1.4-py2.7.egg/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File ".../South-0.7.5-py2.7.egg/south/management/commands/syncdb.py", line 66, in handle_noargs
    migrations = migration.Migrations(app_label)
  File ".../South-0.7.5-py2.7.egg/south/migration/base.py", line 60, in __call__
    self.instances[app_label] = super(MigrationsMetaclass, self).__call__(app_label_to_app_module(app_label), **kwds)
  File ".../South-0.7.5-py2.7.egg/south/migration/utils.py", line 41, in app_label_to_app_module
    app = models.get_app(app_label)
  File ".../Django-1.4-py2.7.egg/django/db/models/loading.py", line 149, in get_app
    raise ImproperlyConfigured("App with label %s is missing a models.py module." % app_label)
django.core.exceptions.ImproperlyConfigured: App with label django is missing a models.py module.

Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to closed
  • Resolution set to invalid
  • Milestone set to 1.0

This is a Django "bug", and it's been this way for ages. Nothing to do with South.

Note: See TracTickets for help on using tickets.