title: djoser override reset password email with template
body: <p>I am using the Django rest framework and Djoser for Authentication and User Registration.</p>
  <p>I completed the part of activation by template. But now the issue is I want to use html template on rest password.
  I created html form page to submit form of reset password. when I click on submit it not taking new password and reset password on post method. giving me error on that.</p>
  <p>Code is running on postmen but getting error when I submit it through html template</p>
  <p><strong>Here is my djoser settings.py</strong></p>
  <pre><code>DJOSER = {
  'LOGIN_FIELD': 'email',
  'USER_CREATE_PASSWORD_RETYPE': True,
  'USERNAME_CHANGED_EMAIL_CONFIRMATION': True,
  'PASSWORD_CHANGED_EMAIL_CONFIRMATION': True,
  'SEND_CONFIRMATION_EMAIL': True,
  'SET_USERNAME_RETYPE': True,
  'SET_PASSWORD_RETYPE': True,
  'PASSWORD_RESET_CONFIRM_URL': 'password/reset/confirm/{uid}/{token}',
  'USERNAME_RESET_CONFIRM_URL': 'email/reset/confirm/{uid}/{token}',
  'ACTIVATION_URL': 'activate/{uid}/{token}',
  'SEND_ACTIVATION_EMAIL': True,
  'EMAIL':
  {
      'activation': 'user_profile.email.ActivationEmail',
      'confirmation':'user_profile.email.ConfirmationEmail',
      'password_reset':'user_profile.email.PasswordResetEmail',
      'password_changed_confirmation':'user_profile.email.PasswordChangedConfirmationEmail'
  },
  'SERIALIZERS': {
      'user_create': 'user_profile.serializer.UserSerializer',
      'user': 'user_profile.serializer.UserSerializer',  
   }
  </code></pre>
  <p>}</p>
  <p><strong>views.py</strong></p>
  <pre><code>class ResetPasswordView(View):
      def get (self, request, uid, token):
          return render(request, 'reset_password.html')
      def post (self, request,uid,token):
          new_password=requests.post.get(&quot;new_password&quot;)
          re_new_password=requests.post.get(&quot;re_new_password&quot;)
          payload = json.dump({'uid': uid, 'token': token, 'new_password': new_password, 're_new_password': re_new_password})
          protocol = 'https://' if request.is_secure() else 'http://'  
          web_url = protocol + request.get_host() + '/'
          password_reset_url = &quot;users/reset_password_confirm/&quot; # url used for activate user
          password_post_url = web_url + AUTHENTICATION_BASE_ROUTE + password_reset_url
          response = requests.post(password_post_url,data=payload)
          return HttpResponse(response.text)
  </code></pre>
  <p><strong>urls.py</strong></p>
  <pre><code>    re_path(r'^password/reset/confirm/(?P&lt;uid&gt;[\w-]+)/(?P&lt;token&gt;[\w-]+)/$', ResetPasswordView.as_view()),
  </code></pre>
  <p><strong>reset_password.html</strong></p>
  <pre><code>&lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
                        {% csrf_token %}
                        {{ form.as_p }}
  
                        &lt;div class=&quot;container&quot;&gt;
                          &lt;h1&gt;Register&lt;/h1&gt;
                          &lt;label for=&quot;psw&quot;&gt;&lt;b&gt;Repeat Password&lt;/b&gt;&lt;/label&gt;
                          &lt;input type=&quot;password&quot; placeholder=&quot;Enter Password&quot; name=&quot;new_password&quot; id=&quot;new_password&quot; required&gt;
                          &lt;label for=&quot;psw-repeat&quot;&gt;&lt;b&gt;Repeat Password&lt;/b&gt;&lt;/label&gt;
                          &lt;input type=&quot;password&quot; placeholder=&quot;Repeat Password&quot; name=&quot;re_new_password&quot; id=&quot;re_new_password&quot; required&gt;
                          &lt;hr&gt;
                          &lt;button type=&quot;submit&quot; class=&quot;registerbtn&quot;&gt;SUBMIT&lt;/button&gt;
                        &lt;/div&gt;
                      &lt;/form&gt;
  </code></pre>
  <p><strong>email.py</strong></p>
  <pre><code>from djoser import email
  
  
  class ActivationEmail(email.ActivationEmail):
      template_name = 'activation.html'
  
  class ConfirmationEmail(email.ConfirmationEmail):
      template_name = 'confirmation_email.html'
  
  class PasswordResetEmail(email.PasswordResetEmail):
      template_name = 'password_reset_email.html'
  
  class PasswordChangedConfirmationEmail(email.PasswordChangedConfirmationEmail):
      template_name = 'password_changed_confirmation_email.html'
      
  </code></pre>
  <p><strong>urls.py</strong></p>
  <pre><code>AUTHENTICATION_BASE_ROUTE = 'authentication/v2/'
  </code></pre>
  <p>Please let me know what am I missing in template</p>