Modify

Ticket #1079 (closed defect: invalid)

Opened 2 years ago

Last modified 2 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:

Description

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


Trace

$ manage.py syncdb
/website
Traceback (most recent call last):
  File ".../virtual/bin/lettuce_manage", line 59, in <module>
    djangorecipe.manage.main('website.settings.test')
  File ".../djangorecipe-1.2.1-py2.7.egg/djangorecipe/manage.py", line 19, in main
    management.execute_manager(mod)
  File ".../Django-1.4-py2.7.egg/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File ".../Django-1.4-py2.7.egg/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  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.

Attachments

Change History

comment:1 Changed 2 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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.