Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.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
Django &引用;heroku运行python manage.py collectstatic--noinput“;“返回”;没有名为“haystack”的模块;_Django_Heroku_Django Haystack - Fatal编程技术网

Django &引用;heroku运行python manage.py collectstatic--noinput“;“返回”;没有名为“haystack”的模块;

Django &引用;heroku运行python manage.py collectstatic--noinput“;“返回”;没有名为“haystack”的模块;,django,heroku,django-haystack,Django,Heroku,Django Haystack,在本地,当我在服务器中打开项目时,haystack工作正常。 当我试图说服heroku时,问题就出现了。我得到一个静态配置错误。当我尝试使用heroku run python manage.py collectstatic--noinput进行调试时,我收到以下消息ImportError:没有名为haystack的模块 在我的virtualenv中,Django haystack安装在 在当地,haystack很管用 我的staticfiles文件夹/目录中还没有任何项目 以前,我有一个模板不存

在本地,当我在服务器中打开项目时,haystack工作正常。 当我试图说服heroku时,问题就出现了。我得到一个静态配置错误。当我尝试使用
heroku run python manage.py collectstatic--noinput
进行调试时,我收到以下消息
ImportError:没有名为haystack的模块

  • 在我的virtualenv中,Django haystack安装在
  • 在当地,haystack很管用
  • 我的staticfiles文件夹/目录中还没有任何项目
  • 以前,我有一个
    模板不存在
    错误。我的virtualenv与我的项目名称相同,因此django只在2个文件中输入,而不是在3个文件中输入。这里的错误可能类似吗

  • 感谢所有愿意帮忙的人

    另外,当我通过shell运行import haystack时,不会显示任何错误消息。haystack在您的requirements.txt中吗?当您说import haystack通过shell工作时,是在heroku上的远程服务器上吗?我猜丹尼尔的答案似乎最有可能。django haystack在我的requirements.txt中列出。有一个相当有趣的问题:在heroku上部署现在可以工作了,但是我得到一个TemplateDoesNotExist错误(我的调试设置为True)。另外,当我通过shell运行import haystack时,不会显示错误消息。haystack在您的requirements.txt中吗?当您说import haystack通过shell工作时,那是在你的服务器上吗?我猜丹尼尔的答案似乎最有可能。django haystack在我的requirements.txt中列出。有一个相当有趣的问题:在heroku上部署现在可以工作了,但我得到了一个TemplateDoesNotExist错误(我的调试设置为True)