I have this url:
url(r'^signup/$', TemplateView.as_view(template_name='users/signup.html')),
and I want the user to be redirected to a different url, if they try access this page and are already logged in.
Is there anyway I can do this in the urls.py or will I have to write a view for it?