Skip to content

Instantly share code, notes, and snippets.

@diegotoral
Created March 20, 2014 22:04
Show Gist options
  • Save diegotoral/9674919 to your computer and use it in GitHub Desktop.
Save diegotoral/9674919 to your computer and use it in GitHub Desktop.
@app.route('/<ObjectId:task_id>')
def show_task(task_id):
task = mongo.db.tasks.find_one_or_404(task_id)
return render_template('task.html', task=task)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment