Created
February 6, 2009 12:57
-
-
Save bellthoven/59386 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import HttpResponse,HttpResponseRedirect | |
from django.shortcuts import render_to_response | |
from crongd.accounts.forms import LoginForm | |
def root(request): | |
if request.user.is_authenticated(): | |
return HttpResponseRedirect('/account/profile') | |
else: | |
vars = {'user': request.user, 'loginForm': LoginForm()} | |
html = render_to_response('root.html',vars) | |
return HttpResponse(html) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment