Created
February 18, 2010 17:54
-
-
Save rdegges/307889 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.contrib.auth import logout | |
from django.http import HttpResponseRedirect | |
from django.shortcuts import render_to_response | |
def main_page(request): | |
return render_to_response('index.html') | |
def logout_page(request): | |
""" | |
Log users out and re-direct them to the main page. | |
""" | |
logout(request) | |
return HttpResponseRedirect('/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment