mod7-gaetasks/main.py
def root():
    'main application (GET) handler'
    store_visit(request.remote_addr, request.user_agent)
    visits, oldest = fetch_visits(10)
    context = {'visits': visits, 'oldest': oldest}
    return render_template('index.html', **context)
main application (GET) handler
main application (GET) handler
main application ( GET ) handler
def root():
    store_visit(request.remote_addr, request.user_agent)
    visits, oldest = fetch_visits(10)
    context = {'visits': visits, 'oldest': oldest}
    return render_template('index.html', **context)
def root ( ) : store_visit ( request . remote_addr , request . user_agent ) visits , oldest = fetch_visits ( 10 ) context = { 'visits' : visits , 'oldest' : oldest } return render_template ( 'index.html' , ** context )
main application (GET) handler
main application ( GET ) handler
'main application (GET) handler'