django - Error while confirm by the mail -
templateresponsemixin requires either definition of 'template_name' or implementation of 'get_template_names()'
url:
from allauth.account.views import confirm_email allauthemailconfirmation url(r'^rest-auth/', include('rest_auth.urls')), url(r'^rest-auth/registration/account-confirm-email/(?p<key>\w+)/$', allauthemailconfirmation, name="account_confirm_email"), url(r'^rest-auth/registration/', include('rest_auth.registration.urls')),
i read this, don't understand how modify code
traceback:
improperlyconfigured: templateresponsemixin requires either definition of 'template_name' or implementation of 'get_template_names()' internal server error: /rest-auth/registration/account-confirm-email/mtu:1bn1od:dq_mcyi6zpr8h2aks9j9bvnddja/ traceback (most recent call last): file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 159, in return self.render_to_response(context) file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 133, in render_to_response template=self.get_template_names(), file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 146, in get_template_names "templateresponsemixin requires either definition of " improperlyconfigured: templateresponsemixin requires either definition of 'template_name' or implementation of 'get_template_names()' internal server error: /rest-auth/registration/account-confirm-email/mtu:1bn1od:dq_mcyi6zpr8h2aks9j9bvnddja/ traceback (most recent call last): file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 159, in return self.render_to_response(context) file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 133, in render_to_response template=self.get_template_names(), file "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 146, in get_template_names "templateresponsemixin requires either definition of " improperlyconfigured: templateresponsemixin requires either definition of 'template_name' or implementation of 'get_template_names()'
your regex (?p<key>\w+)
should (?p<key>.+)
.
Comments
Post a Comment