刚刚安装了django-cacheops。但是,当我尝试运行python manage.py migrate
或python manage.py syncdb
时,我会收到以下信息:
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
我在django 1.6上使用django-cacheops 2.1.1