title: Prefilling a form field through url
body: <p>I have a register form , in which when a already registered email gets entered , it shows a error message with a login link, when clicked on login link it redirects to login page, here I want to prefill the the email field with that user email. I am using django.</p>
  <p>Does anyone know how to do it?
  I would appreciate some help. Thank you.</p>
  <p>my login url in urls.py:</p>
  <pre><code>path('login/', views.login, name=&quot;login&quot;)
  </code></pre>
  <p>my login link in error message:</p>
  <pre><code>&lt;a href=&quot;login/&quot;&gt;login&lt;/a&gt;
  </code></pre>
  <p>Please let me what to do add to the link in url to prefill it with the user email ID.</p>