Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 django 加载 google web 工具包应用程序,但是当我从 django 视图中使用 render_to_response() 调用它时,gwt 主机页面似乎不起作用(只是一个空白屏幕)。我已经验证了一个普通的 hello-world html 文件可以从 gwt war 目录中正常加载,所以这不是路径问题。如果我在浏览器中手动打开它,也会呈现主机页面。我正在使用 manage.py runserver 在开发模式下运行我的 django 应用程序。有任何想法吗?
当你说你已经在浏览器中手动尝试过 - 是通过 HTTP 还是 file:///
听起来像是路径问题,TBH。在 Safari 或 Firebug 中查看主机页面加载时的 HTTP 活动。您在主机页面中包含的“nocache”JS 文件会为该用户代理加载适当的已编译 JS。也许它找不到JS。