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}))
Source:stackexchange.com