title: CSRF token missing or invalid Django
body: <p>I've run into this issue before and solved it, but this just popped up totally randomly (or so it seems).  I've just come back to my Django project after a little while away from it...when logging in I forgot my web username and it gave me the appropriate error message <code>Sorry, that's not a valid username or password</code>.  So to solve this I created a new superuser (since I had also forgot my admin username) so I could check what my web username was.  I did that successfully, but now when I try to login I get the CSRF error (whether the username or password is correct or not).  I have no idea how this happened since it was validating properly 10 seconds ago and I didn't change a single line of code.</p>
  
  <pre><code>{% extends "base.html" %}
  
  {% block content %}
  
      &lt;title&gt;{% block title %} | Login{% endblock %}&lt;/title&gt;
  
      &lt;h2&gt;Login&lt;/h2&gt;
  
      {% if form.errors %}
          &lt;p class="error"&gt;Sorry, thats not a valid username or password&lt;/p&gt;
      {% endif %}
  
      &lt;form action="/accounts/auth/" method="POST"&gt;{% csrf_token %}
          &lt;label for="username"&gt;Username: &lt;/label&gt;
          &lt;br&gt;
          &lt;input type="text" name="username" value="" id="username"&gt;
          &lt;br&gt;&lt;br&gt;
          &lt;label for="password"&gt;Password: &lt;/label&gt;
          &lt;br&gt;
          &lt;input type="password" name="password" value="" id="password"&gt;
          &lt;br&gt;&lt;br&gt;
          &lt;input type="submit" value="Login"&gt;
      &lt;/form&gt;
  
  {% endblock content %} 
  </code></pre>