title: Page not found(404) error if reset password email link is wrong in django
body: <p>I am using django default password reset feature.I get the set new password email link via email.</p>
  
  <p>If the url is correct then it's fine. Now if I put a wrong or invalid link then I get,</p>
  
  <pre><code>The current URL, account/reset/NTQ/4ox-7f135b9b74e7a4aa909fdd/, didn't match any of these.
  </code></pre>
  
  <p>accounts/urls.py -- </p>
  
  <pre><code>url(r'^password_reset/$', auth_views.password_reset, name='password_reset'),
  url(r'^password_reset/done/$', auth_views.password_reset_done, name='password_reset_done'),
  url(r'^reset/(?P&lt;uidb64&gt;[0-9A-Za-z_\-]+)/(?P&lt;token&gt;[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
      auth_views.password_reset_confirm, name='password_reset_confirm'),
  #url(r'^reset/',auth_views.password_reset_confirm, name='empty_password_reset_confirm'),
  url(r'^reset/done/$', auth_views.password_reset_complete, name='password_reset_complete'),
  </code></pre>
  
  <p>Template password_reset_confirm.html -- </p>
  
  <pre><code>{% extends 'base.html' %}
  
  {% block content %}
    {% if validlink %}
      &lt;h3&gt;Change password&lt;/h3&gt;
      &lt;form method="post"&gt;
        {% csrf_token %}
        {{ form.as_p }}
        &lt;button type="submit"&gt;Change password&lt;/button&gt;
      &lt;/form&gt;
    {% else %}
      &lt;p&gt;
        The password reset link was invalid, possibly because it has already been used.
        Please request a new password reset.
      &lt;/p&gt;
    {% endif %}
  {% endblock %}
  </code></pre>
  
  <p>I tried with --</p>
  
  <pre><code>url(r'^reset/',auth_views.password_reset_confirm, name='empty_password_reset_confirm')
  </code></pre>
  
  <p>But in that case I am getting <code>AssertionError at /account/reset/NTQ/4ox-7f135b9b74e7a4aa909fdd/</code></p>
  
  <p>Any help is highly appreciated.</p>