Django-cacheops doesn't work with South

Just django-cacheops installed. However, when I try to run python manage.py migrate

or python manage.py syncdb

, I get the following:

Traceback (most recent call last):


File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/stanleytang/Desktop/DoorDash/Development/doorstep-django/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/Users/stanleytang/Desktop/DoorDash/Development/doorstep-django/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/stanleytang/Desktop/DoorDash/Development/doorstep-django/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/Users/stanleytang/Desktop/DoorDash/Development/doorstep-django/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 75, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/Users/stanleytang/Desktop/DoorDash/Development/doorstep-django/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/Users/stanleytang/Desktop/DoorDash/Development/doorstep-django/venv/lib/python2.7/site-packages/south/management/commands/__init__.py", line 10, in <module>
    import django.template.loaders.app_directories
  File "/Users/stanleytang/Desktop/DoorDash/Development/doorstep-django/venv/lib/python2.7/site-packages/django/template/loaders/app_directories.py", line 25, in <module>
    raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))
django.core.exceptions.ImproperlyConfigured: ImportError cacheops: cannot import name app_directories

      

I am on django 1.6 and using django-cacheops 2.1.1

+3


source to share


1 answer


This turned into circular imports in non-caching templates. Here's the problem .



To take home: Loop imports provide in Python error messages :)

0


source







All Articles