google-app-engine - 在 Django 模板中使用 webapp2.uri_for

标签 google-app-engine django-templates webapp2

我有一个使用标准 webapp2 框架和 Django 模板引擎的 GAE 应用程序。此设置似乎不支持 Django 的内置 {% url %} 模板标签。

我不想将 URL 硬编码到我的模板中,而是想在我的模板中使用 webapp2.uri_for 函数。这可能吗?如果可以,我该怎么做?

最佳答案

关于google-app-engine - 在 Django 模板中使用 webapp2.uri_for,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11219176/

相关文章:

python - Ckeditor 在创建后仍然隐藏 - editor.css 为空

java - Datanucleus 增强器不适用于 appengine

Django - 通过模板中的ManyToMany额外字段访问

javascript - 使用ajax加载模板时未呈现脚本

Django:如何返回到之前的 URL

json - 如何使用应用引擎 Python webapp2 正确输出 JSON?

python - 如何解决文件上传时python webapp2中的 "AttributeError: ' unicode'对象没有属性 'file'“一劳永逸?

google-app-engine - Google App Engine 自定义域未激活 Google 管理的 SSL

java - Spring MVC DispatcherServlet 的延迟实例化?

java - GWT : How to update the combo value with the value from server during screen load?