I've a page at / that displays a form for signup new users. When a new user registers, it will redirect to /dashboard.
But when an authenticated user go to /, it should see the /dashboard page. The question is: should I put something like this in the home() view:
if request.user.is_authenticated():
return HttpResponseRedirect("/dashboard")
or this is an ugly method and should I return different templates from my home() relying on the user's auth status? In this case, how can I customize my URL to show /dashboard and not / ?