小编kuk*_*lia的帖子

如何在 Django 视图中进行 url 编码

在 Django 中,我想这样做

 <a href="{% url 'firstapp:create' %}?next={{ nextos|urlencode }}">
Run Code Online (Sandbox Code Playgroud)

但在我的views.py中,当我渲染页面时

return render(request, 'create' + parameter next=nextos)
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

python django url python-3.x

1
推荐指数
1
解决办法
2万
查看次数

标签 统计

django ×1

python ×1

python-3.x ×1

url ×1