问题Django在IIS 7.5上 - PyISAPIe错误是:'module'对象没有属性'argv'

时间:2011-09-25 16:05:26

标签: python django iis

我在IIS 7.5上运行Django App时遇到了一些问题。

只需按照[this] [1]介绍的步骤操作即可。 我成功在IIS 7.5上运行该项目。

但是,它显示出一些问题......就像这样......

Request Method: GET
Request URL: http://localhost/


Traceback:
File "D:\Program Files\Python\Python25\lib\site-packages\django\core\handlers\base.py" in get_response
  101.                             request.path_info)
File "D:\Program Files\Python\Python25\lib\site-packages\django\core\urlresolvers.py" in resolve
  252.                     sub_match = pattern.resolve(new_path)
File "D:\Program Files\Python\Python25\lib\site-packages\django\core\urlresolvers.py" in resolve
  158.             return ResolverMatch(self.callback, args, kwargs, self.name)
File "D:\Program Files\Python\Python25\lib\site-packages\django\core\urlresolvers.py" in _get_callback
  170.             raise ViewDoesNotExist("Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)))

Exception Type: ViewDoesNotExist at /
Exception Value: Tried home in module core.views. Error was: 'module' object has no attribute 'argv'

0 个答案:

没有答案