[Fixed]-How to pass a kwarg/arg from auth_views.login to a url parameter of a different view in django

1👍

What you need is a redirect…

from django.shortcuts import redirect
from django.core.urlresolvers import reverse_lazy

def my_login(request)
    # your login stuff...
    return redirect(reverse_lazy('dashboard',kwargs={'name':request.user.username}))

Leave a comment