I have seen similar questions, this is not a duplicate. I have a simple redirect that recieves kwargs that is not working and I don't know why. The docs give this example:
def my_view(request):
...
return redirect('some-view-name', foo='bar')
And it is exactly what I'm doing:
...
...
return redirect('perfiles:despues_contacto', razon_contacto='donacion', correo_contacto='thrall@gmail.com')
The url pattern looks like this:
url(r'^gracias_por_contactarnos/(?P<razon_contacto>[-\w]+)/(?P<correo_contacto>[-\w]+)/$',
views.DespuesContacto.as_view(), name="despues_contacto"),
?¿ What am I missing? maybe it is something obvious ... but my eyes are tired of trying to find the error. Is it the regex?