I'm trying to implement the solution to error
ImproperlyConfigured
TemplateResponseMixin requires either a definition of 'template_name' or an implementation of 'get_template_names()
Here's my urls.py as suggested
from django.urls import include, path, re_path
urlpatterns = [
re_path(r'^auth/registration/account-confirm-email/(?P<key>[\s\d\w().+-_',:&]+)/$', TemplateView.as_view(), name = 'account_confirm_email'),
path('auth/registration/', include('dj_rest_auth.registration.urls')),
]
But I'm getting this error.
re_path(r'^registration/account-confirm-email/(?P<key>[\s\d\w().+-_',:&]+)/$', TemplateView.as_view(), name = 'account_confirm_email'),
^
SyntaxError: invalid syntax
Any idea on what I could be missing? Thanks!