Django_like回溯

时间:2013-06-05 13:50:27

标签: python django

我在Django应用程序中使用django like..to搜索模型它运行正常..但是当我尝试在远程计算机上部署它时,它是错误的...

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception
    if resolver.urlconf_module is None:
  File "/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "./couponRestApi/urls.py", line 9, in <module>
    admin.autodiscover()
  File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 25, in autodiscover
    mod = import_module(app)
  File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/site-packages/django_like/__init__.py", line 7, in <module>
    QUERY_TERMS['like'] = None

所以尝试安装django_like但它已经安装了......

sudo pip install django_like
Requirement already satisfied (use --upgrade to upgrade): django-like in /usr/local/lib/python2.7/site-packages
Cleaning up...

有人可以帮帮我吗?为什么我收到此错误?

0 个答案:

没有答案