1

Django debug toolbar shows me in GET parameters that I have a variable 'name' in my get parameters, which is normal.

I'd like to get this 'name' value to fill the form placeholder.

I've tried {{ view.get.name }} or {{ request.name }} or... {{ name }} with no success.

4

1 回答 1

1

python is case sensitive language and the get parameters are in the GET, so you just need:

{{request.GET.name}}
于 2019-04-29T13:47:04.847 回答