title: NoReverseMatch on password_Reset_confirm
body: <p>I have a problem getting password_Reset_confirm bit working.</p>
  
  <p>url:</p>
  
  <pre><code>(r'^password_reset/$', 'django.contrib.auth.views.password_reset'),
  (r'^password_reset_done/$', 'django.contrib.auth.views.password_reset_done'),
  (r'^password_reset_confirm/(?P&lt;uidb36&gt;[0-9A-Za-z]+)-(?P&lt;token&gt;.+)/$', 'django.contrib.auth.views.password_reset_confirm'),
  </code></pre>
  
  <p><strong>password_reset_email.html</strong>, which includes this:</p>
  
  <pre><code>{% load url from future %}
  Someone asked for password reset for email {{ email }}. Follow the link below:
  {{ protocol}}://{{ domain }}{% url 'password_reset_confirm' uidb36=uid token=token %}
  </code></pre>
  
  <p>But then after submitting my email for reseting the password, I get this error message shown:</p>
  
  <blockquote>
    <p>NoReverseMatch at /password_reset/ Reverse for
    'password_reset_confirm' with arguments '()' and keyword arguments
    '{'uidb36': '1', 'token': '38d-b5ec0b2a2321f522f954'}' not found.</p>
  </blockquote>
  
  <p>I thought since this was using a build in view, I wouldn't have to take care on anything else?</p>
  
  <p>Thanks for advice,</p>
  
  <p><strong>Update:</strong></p>
  
  <p>After using the full path, it seems to work. However it sends two emails out: and each has a different link.  Why is that? And where do I set the {{ domain }}? Thanks</p>
  
  <pre><code>Follow the link below:
  http://example.com/password_reset_confirm/1-38d-b5ec0b2a2321f522f954/
  
  Follow the link below:
  http://example.com/password_reset_confirm/2-38d-18482e1f129c84b9c2bc/
  </code></pre>
  
  <p><strong>Update 2</strong></p>
  
  <p>I figured it out. Just in case someone else has this problem. You need to set your domain name as the Site for your application:</p>
  
  <p>In Admin or django console:</p>
  
  <pre><code>&gt;&gt;&gt; my_site = Site.objects.get(pk=1)
  &gt;&gt;&gt; my_site.domain = 'somedomain.com'
  &gt;&gt;&gt; my_site.name = 'Some Domain'
  &gt;&gt;&gt; my_site.save()
  </code></pre>
  
  <p>The other problem why you could get two emails when resetting it, is because that you can have multiple usernames associated with the same email address. Its pretty silly. This is the next thing I have to tackle down.</p>