How do I use request.META.get('HTTP_REFERER') within template?
问题 I'd like to use request.META.get('HTTP_REFERER') within template. My template source: <!-- this is login.html --> {% extends "base.html" %} {% block title %}django bookmark- login{% endblock %} {% block head %}login{% endblock %} {% block content %} {% if form.errors %} <p>try again!</p> {% endif %} <form method="post" action=".">{% csrf_token %} <p><label for="id_username">username:</label> {{ form.username }}</p> <p><label for="id_password">password:</label> {{ form.password }}</p> <input