Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.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
Python 网络派系中的观点派_Python_Django_Webfaction - Fatal编程技术网

Python 网络派系中的观点派

Python 网络派系中的观点派,python,django,webfaction,Python,Django,Webfaction,我上传我的项目使用FTP在Web派系,现在使用putty我登录。但同一个项目工作正常,但上传后出现错误viewdoesnotexist我不知道我要做什么更改我是一个新手。是啊!a在apache httpd.conf中进行了更改,并创建了scene_finder.wsgi ViewDoesNotExister位于/索引 无法导入场景视图。错误为:没有名为视图的模块 请求方法:获取 请求URL: Django版本:1.3 异常类型:ViewDoesNotExist 异常值: 无法导入场景视图。错误是

我上传我的项目使用FTP在Web派系,现在使用putty我登录。但同一个项目工作正常,但上传后出现错误viewdoesnotexist我不知道我要做什么更改我是一个新手。是啊!a在apache httpd.conf中进行了更改,并创建了scene_finder.wsgi

ViewDoesNotExister位于/索引 无法导入场景视图。错误为:没有名为视图的模块 请求方法:获取 请求URL: Django版本:1.3 异常类型:ViewDoesNotExist 异常值: 无法导入场景视图。错误是:没有名为view的模块


提前感谢

在你的scene\u finder.wsgi中可能会有一些代码设置你的PYTHONPATH。确保它包括/home/webapps/django/scene\u finder/scene。

你确定PYTHONPATH拥有你网站的目录吗?为了确保这一点,您可以始终将其添加到wsgi脚本中:如果“/my/path/”不在sys.path:sys.path.append“/my/path”中,则导入sys。我应该在哪个文件中追加以及如何追加?@Damian Ok我在URL中添加了。py import sys.path.appender/home/webapps/django/scene\u finder/scene scene scene是view.py存在的文件夹名称。。我做错了。。