我在Ubuntu虚拟机上使用python django框架作为Web应用程序。我之前在另一台虚拟机上运行了应用程序,它运行得很好。我认为一切都很好,因为我可以运行server amd collectstatic而没有任何问题。
然而,在页面加载时我会给予追溯;
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/handlers.py", line 72, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 243, in __call__
signals.request_started.send(sender=self.__class__)
File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 170, in send
response = receiver(signal=self, sender=sender, **named)
File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 58, in reset_queries
for conn in connections.all():
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 105, in all
return [self[alias] for alias in self]
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__
backend = load_backend(db['ENGINE'])
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 27, in load_backend
return import_module('.base', backend_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/sql_server/pyodbc/base.py", line 31, in <module>
raise ImproperlyConfigured("Django %d.%d is not supported." % DjangoVersion[:2])
ImproperlyConfigured: Django 1.5 is not supported.
[11/Sep/2014 08:56:51] "GET /input_parameters HTTP/1.1" 500 59
任何人都可以帮助我吗?感谢