D
D
DenGit20182018-03-22 16:59:10
Django
DenGit2018, 2018-03-22 16:59:10

Why is the error in Django?

The pr_k variable contains the user id. I pass it to the template, but when I run django it throws an error:
TemplateSyntaxError at /messages/16/
Could not parse the remainder: '{{pr_k}}' from '{{pr_k}}'
Why?

<form action="{% url 'home:send_msg' pk={{pr_k}} %}" method="post">
      {% csrf_token %}
            {{form.post}}
      <br>
            <button type="submit" class="btn btn-default">Отправить</button>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question