Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Feb 9, 2015
1 parent 9640147 commit 5cb83d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,8 @@ First, return to ``app.py`` and pull the CSV data into the ``detail`` view.
object_list = get_csv()
return render_template(template, object_list=object_list)
@app.route('/<number>/')
def detail(number):
@app.route('/<row_id>/')
def detail(row_id):
template = 'detail.html'
object_list = get_csv()
return render_template(template)
Expand Down Expand Up @@ -791,8 +791,8 @@ Then have the ``detail`` function loop through the CSV data list, testing each r
object_list = get_csv()
return render_template(template, object_list=object_list)
@app.route('/<number>/')
def detail(number):
@app.route('/<row_id>/')
def detail(row_id):
template = 'detail.html'
object_list = get_csv()
for row in object_list:
Expand Down Expand Up @@ -912,8 +912,8 @@ Right now Flask throws an ugly error. The polite thing to do is return what is c
object_list = get_csv()
return render_template(template, object_list=object_list)
@app.route('/<number>/')
def detail(number):
@app.route('/<row_id>/')
def detail(row_id):
template = 'detail.html'
object_list = get_csv()
for row in object_list:
Expand Down

0 comments on commit 5cb83d6

Please sign in to comment.