安装django-waffe后导入错误?

时间:2014-01-26 19:53:40

标签: python django

我正在尝试在我的django项目中使用django-waffle,但是当我尝试运行该项目时,我得到一个ImportError: cannot import name Flag我在运行syncdb或尝试运行迁移时遇到此错误通过南。这是在Django 1.5.4 / Python 2.7.1上。根据django-waffle文档,我django.core.context_processors.request和我TEMPLATE_CONTEXT_PROCESSORS waffle.middleware.WaffleMiddleware MIDDLEWARE_CLASSES

来自syncdb:

追踪(最近一次通话):   文件“manage.py”,第10行,in     execute_from_command_line(sys.argv中)

文件“/Users/Dropbox/virtualenviroments/lib/python2.7/site-packages/django/core/management/init.py”,第453行,在execute_from_command_line中     utility.execute()

文件“/Users/Dropbox/virtualenviroments/lib/python2.7/site-packages/django/core/management/init.py”,第392行,执行中     self.fetch_command(子命令).run_from_argv(self.argv)

文件“/Users/Dropbox/virtualenviroments/lib/python2.7/site-packages/django/core/management/init.py”,第272行,在fetch_command中     klass = load_command_class(app_name,subcommand)

文件“/Users/Dropbox/virtualenviroments/lib/python2.7/site-packages/django/core/management/init.py”,第77行,在load_command_class中     module = import_module('%s.management.commands。%s'%(app_name,name))

文件“/Users/Dropbox/virtualenviroments/lib/python2.7/site-packages/django/utils/importlib.py”,第35行,在import_module中     导入(名称)

文件“/Users/Dropbox/virtualenviroments/lib/python2.7/site-packages/south/management/commands/init.py”,第10行,in     import django.template.loaders.app_directories

文件“/Users/Dropbox/virtualenviroments/lib/python2.7/site-packages/django/template/loaders/app_directories.py”,第25行,在     raise ImproperlyConfigured('ImportError%s:%s'%(app,e.args [0]))

django.core.exceptions.ImproperlyConfigured:ImportError waffle:无法导入名称Flag

0 个答案:

没有答案