Problem with Satchmo and sorl-thumbnail in syncdb

154 views
Skip to first unread message

Paul Walsh

unread,
Oct 8, 2012, 4:41:12 PM10/8/12
to satchm...@googlegroups.com
I am running:

Django 1.4.1
sorl-thumbnail 11.12

I have 'sorl.thumbnail' in INSTALLED_APPS

When I do syncdb (with or without migrate), I get the following error:

django.core.exceptions.ImproperlyConfigured: App with label thumbnail is missing a models.py module.

This being the full traceback:

File "manage.py", line 27, in <module>
    execute_manager(settings)
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 66, in handle_noargs
    migrations = migration.Migrations(app_label)
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/south/migration/base.py", line 61, in __call__
    self.instances[app_label] = super(MigrationsMetaclass, self).__call__(app_label_to_app_module(app_label), **kwds)
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/south/migration/utils.py", line 41, in app_label_to_app_module
    app = models.get_app(app_label)
  File "/Users/paulwalsh/Sites/environments/hamigdalor/lib/python2.7/site-packages/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 thumbnail is missing a models.py module.



Why can't I syncdb with sorl-thumbnail?

Paul Walsh

unread,
Oct 10, 2012, 7:51:46 AM10/10/12
to satchm...@googlegroups.com
Can anyone help?

In a clean virtual environment, without Satchmo but with the same sorl.thumbnail, django and south modules, it works fine.

Paul Walsh

unread,
Oct 10, 2012, 7:57:33 AM10/10/12
to satchm...@googlegroups.com
ok, solved it by reordering my installed apps along the lines of the simple.settings.py in dev version.


On Monday, 8 October 2012 22:41:12 UTC+2, Paul Walsh wrote:
Reply all
Reply to author
Forward
0 new messages