Created
February 18, 2010 19:28
-
-
Save rdegges/307959 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.shortcuts import render_to_response | |
from django.contrib.auth.decorators import login_required | |
@login_required | |
def portal_main_page(request): | |
""" | |
If users are authenticated, direct them to the main page. Otherwise, | |
take them to the login page. | |
""" | |
return render_to_response('portal/index.html') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment