首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iis下的Hgweb:‘Exctions.RuntimeError’>:没有在[]中找到hgweb模板

iis下的Hgweb:‘Exctions.RuntimeError’>:没有在[]中找到hgweb模板
EN

Stack Overflow用户
提问于 2014-11-20 11:54:37
回答 1查看 202关注 0票数 0

我正在使用这些指示在Windows 7下设置Mercurial --我已经测试了一个空的存储库,并得到了以下错误

代码语言:javascript
复制
 C:\inetpub\wwwroot\hg\hgweb.cgi in ()
     15 
     16 from mercurial import demandimport; demandimport.enable()
     17 from mercurial.hgweb import hgweb, wsgicgi
     18 application = hgweb('c:\inetpub\wwwroot\hg\hgweb.config')
=>   19 wsgicgi.launch(application)
wsgicgi = <module 'mercurial.hgweb.wsgicgi' from 'c:\inetpub\wwwroot\hg\mercurial\hgweb\wsgicgi.pyc'>, wsgicgi.launch = <function launch>, application = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>
 C:\inetpub\wwwroot\mercurial\hgweb\wsgicgi.pyc in launch(application=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>)
 C:\inetpub\wwwroot\mercurial\hgweb\hgwebdir_mod.pyc in __call__(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, env={'ALLUSERSPROFILE': r'C:\ProgramData', 'APPDATA': r'C:\Windows\system32\config\systemprofile\AppData\Roaming', 'APP_POOL_ID': 'DefaultAppPool', 'AUTH_PASSWORD': '', 'AUTH_TYPE': '', 'AUTH_USER': '', 'CERT_COOKIE': '', 'CERT_FLAGS': '', 'CERT_ISSUER': '', 'CERT_SERIALNUMBER': '', ...}, respond=<function start_response>)
 C:\inetpub\wwwroot\mercurial\hgweb\hgwebdir_mod.pyc in run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request.wsgirequest object>)
 C:\inetpub\wwwroot\mercurial\hgweb\hgwebdir_mod.pyc in templater(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request.wsgirequest object>)
 C:\inetpub\wwwroot\mercurial\templater.pyc in stylemap(styles=(None, None, 'paper'), paths=[])
<type 'exceptions.RuntimeError'>: No hgweb templates found in [] 
      args = ('No hgweb templates found in []',) 
      message = 'No hgweb templates found in []'. 

我已经将模板文件夹从C:\Program (X86)\Mercurial\Template复制到C:\inetpub\wwwroot\hg\Template。一些说明引用了“模板”文件夹,所以我尝试将模板重命名为模板,没有任何区别。

是否有其他地方我应该放置模板文件夹,或者有什么地方我应该指定模板路径?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-20 12:53:29

可以在hgweb.config文件中指定模板文件夹的路径。

代码语言:javascript
复制
[web]
templates = c:\inetpub\wwwroot\hg\Templates
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27038979

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档