0

我正在使用 django like..在 Django 应用程序中搜索模型,它工作正常..但是当我尝试将它部署在远程机器上时,它是错误的......

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...

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

4

0 回答 0