I am a new user and so far I love web2py. I am going through the
tutorial and I encounter my first issue.
I have an application called tutorial and a method in the default
controller 'default.py':
def first():
form = FORM(INPUT(_name="thename", requires=IS_NOT_EMPTY()),
INPUT(_type="submit"))
if form.accepts(request.vars, session):
session.thename = form.vars.thename
redirect(URL('second'))
return dict(form=form)
Then I have the view default/first.html
{{extend 'layout.html'}}
<h1>This is the default/first.html template</h1>
{{=form}}
{{=BEAUTIFY(response._vars)}}
When I view the page http://127.0.0.1:8000/tutorial/default/first
I see the form twice.
Any suggestions of what I am doing wrong??