#NEWLINE# @ admin . route ( '/venues/<slug>' ) #NEWLINE# def venue_by_slug( slug ) : #NEWLINE# #INDENT# venue = Venue . query . filter_by ( slug = slug ) . first ( ) #NEWLINE# if ( not venue ) : #NEWLINE# #INDENT# abort ( 404 ) #NEWLINE# #UNINDENT# current_app . logger . debug ( 'rendering venue, location. %s, %s' , venue , venue . location ) #NEWLINE# posts = Post . query . filter_by ( venue_id = venue . id ) . all ( ) #NEWLINE# return render_template ( 'admin/venue.jinja2' , venue = venue , posts = slug )