没有名为vectorformats.Formats

时间:2015-08-18 05:54:42

标签: django ubuntu-14.04 web-deployment

我正在努力使我的系统在线工作,但我收到了这个错误:

Environment:


Request Method: GET
Request URL: http://XXX.XX.XXX.XX:8082/

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.gis',
 'evidensapp')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  101.                 resolver_match = resolver.resolve(request.path_info)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve
  320.                     sub_match = pattern.resolve(new_path)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve
  222.             return ResolverMatch(self.callback, args, kwargs, self.name)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in callback
  229.         self._callback = get_callable(self._callback_str)
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py" in wrapper
  32.         result = func(*args)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in get_callable
  96.             mod = import_module(mod_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module
  40.         __import__(name)
File "/home/lidar1admin/evidens/evidensapp/views.py" in <module>
  10. from vectorformats.Formats import Django, GeoJSON

Exception Type: ImportError at /
Exception Value: No module named vectorformats.Formats

这很奇怪,我无法弄清楚,因为我已经安装了模块vectorformats,它在我的Windows计算机本地工作正常。

顺便说一句,我在virtualenv中运行所有依赖项。 Ubuntu 14.04

这里有些图片可能会有所帮助: enter image description here enter image description here

正如您所注意到我已经安装了模块,但它似乎无法正常工作。

0 个答案:

没有答案