title: Method Not Allowed (POST): /password_change_done
body: <p>i am new to django/python</p>
  <p>i am trying to change user password but i am getting error</p>
  <pre><code>Method Not Allowed (POST): /password_change_done
  Method Not Allowed: /password_change_done
  [23/Jul/2020 19:11:05] &quot;POST /password_change_done HTTP/1.1&quot; 405 0   
  </code></pre>
  <p>this is my url patterns just for password changes :</p>
  <pre><code> path('password_change',
      auth_views.PasswordChangeView.as_view(template_name='password_change.html'),
      name='password_change'),
  
      path('password_change_done',
      auth_views.PasswordChangeDoneView.as_view(template_name='password_change_done.html'),
      name='password_change_done'),
  </code></pre>
  <p>both my html pages for this operation
  my html code: password_change</p>
  <pre><code>{% load static %}
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;title&gt;Welcome&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h3&gt; Change Password&lt;/h3&gt;
       
      &lt;form action=&quot;{% url 'password_change_done' %}&quot; method=&quot;POST&quot; class=&quot;form-signin&quot;&gt;{% csrf_token %}
  
          &lt;input name=&quot;Old password&quot; class=&quot;form_control&quot; placeholder=&quot;Old password&quot;
          type=&quot;password&quot; id=old_password required=&quot;true&quot;&gt;
          &lt;input name=&quot;new password&quot; class=&quot;form_control&quot; placeholder=&quot;new password&quot;
          type=&quot;password&quot; id=new_password required=&quot;true&quot;&gt;
          &lt;input name=&quot;confirm password&quot; class=&quot;form_control&quot; placeholder=&quot;confirm password&quot;
          type=&quot;password&quot; id=confirm_password required=&quot;true&quot;&gt;
          
  
          &lt;button  type=&quot;submit&quot;&gt;Update&lt;/button&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>my html code for password_chang_done:</p>
  <pre><code>{% load static %}
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;title&gt;Welcome&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Welcome&lt;/h1&gt;
      &lt;h2&gt; &lt;img src=&quot;{% static 'images/welcome.jpg'  %}&quot;&gt; &lt;/h2&gt;
      
      &lt;h5&gt;hello,{{request.user.username}}&lt;/h5&gt;
      &lt;script&gt;
          window.alert(&quot;password sucessfully changed&quot;)
      &lt;/script&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>