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.shortcuts import redirect | |
from google.appengine.api.users import ( | |
create_login_url, | |
create_logout_url, | |
get_current_user, | |
) | |
def switch_accounts(request): | |
""" View function for allowing a user to switch Google accounts. | |
Requires 'destination_url' in the query string for the URL |
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
<h1>Page 1</h1> | |
<a href="/myview/?page={{previous_page_number}}">Previous page</a> | |
<a href="/myview/?page={{next_page_number}}">Next page</a> | |
{% for object in results %} | |
{{object}} {#whatever you're displaying #} | |
{% endfor %} |
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
<h1>Page 1</h1> | |
<a href="/myview/?cursor={{cursor_for_next_page}}">Next page</a> | |
{% for object in results %} | |
{{object}} {#whatever you're displaying #} | |
{% endfor %} |