Tutorial by Examples

General Imports, using jinja2 to populate templates into htmls. import jinja2 import webapp2 Important import to use Users API: from google.appengine.api import users Setting of Jinja environment: [into the example the tehcnology selected to populate the information into the frontend] JINJ...
I used for this example webapp2 to cover the routing. from webapp2_extras.routes import RedirectRoute as Route Import from views: from views import MainPage MainPage is the handler set into root "/": urlpatterns = [ Route('/', MainPage), ]
Simple extract of index.html: <div class="sign-in"> {% if user %} [Passing the url we have the opportunity to logout the user] <a href="{{ url|safe }}">LOG OUT</a> [You can include here operations for user authenticated] ...

Page 1 of 1