AKK
unread,Jul 19, 2009, 5:31:31 PM7/19/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi, i have a login form using the generic view like so:
(r'^accounts/login/$', 'django.contrib.auth.views.login',
{'template_name': 'blogSite/login.html'}),
but i only want the form to show up if your not logged in, but since
its is a generic view how can i use
if not request.user.is_authenticated():
as well as the view and also pass the template name.
Thanks