-1

I have a problem with django module named freetext.

There is no info how to install it in Django. I'm getting this error while trying to run Django on new server:

[Mon May 28 13:47:45 2012] [error] mod_wsgi (pid=27668): Exception occurred processing WSGI script '/var/www/vhosts/domain.co.uk/sites/somod/apache/django.wsgi'.
[Mon May 28 13:47:45 2012] [error] Traceback (most recent call last):
[Mon May 28 13:47:45 2012] [error]   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 250, in __call__
[Mon May 28 13:47:45 2012] [error]     self.load_middleware()
[Mon May 28 13:47:45 2012] [error]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 47, in load_middleware
[Mon May 28 13:47:45 2012] [error]     raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Mon May 28 13:47:45 2012] [error] ImproperlyConfigured: Error importing middleware shop.cart.middleware: "No module named freetext"

How can I install this module?

4

1 回答 1

2

In this way:

pip install -e https://github.com/howiworkdaily/django-freetext.git

Update, that doesn´t work because that app doesn´t have a setup.py, so clone it and put it in somewhere PYTHONPATH can find it, or better like a submodule.

Or just inside your django project:

git clone https://github.com/howiworkdaily/django-freetext.git freetext

at the same level of your manage.py

于 2012-05-28T14:50:08.047 回答