Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
没有名为freetext-Django的模块_Django_Freetext - Fatal编程技术网

没有名为freetext-Django的模块

没有名为freetext-Django的模块,django,freetext,Django,Freetext,我对名为的django模块有问题 没有关于如何在Django中安装它的信息。尝试在新服务器上运行Django时出现此错误: [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]

我对名为的django模块有问题

没有关于如何在Django中安装它的信息。尝试在新服务器上运行Django时出现此错误:

[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"
如何安装此模块

以这种方式:

pip install -e https://github.com/howiworkdaily/django-freetext.git
更新时,这不起作用,因为该应用程序没有setup.py,所以请克隆它并将其放在PYTHONPATH可以找到它的地方,或者更像一个应用程序

或者就在django项目中:

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

与manage.py处于同一级别

感谢您的更新。我尝试使用第二个命令,但我遇到了以下错误:
在/var/www/vhosts/somodfurniture.co.uk/sites/somod/freetext/.Git/fatal中初始化了空Git存储库:https://github.com/howiworkdaily/djnago-freetext.git/info/refs 找不到:您是否在服务器上运行了git update server info?
Firts也没有给我-,但是我不知道。我正在使用CentOS 6、python 2.6、wsgi,但我对git一无所知。有什么方法可以检查它吗?现在更好的方法是下载代码(单击github中的zip按钮)并将其解压缩到您管理.py residesThanks的同一文件夹中,我认为这是可行的,因为我遇到了不同的错误。