Given this snippet for a page handler in Flask:
def bar():
return render_template('hello.html', name='my name is voltron')
app.add_url_rule('/bar/<string(length=2):any_str>', 'bar', bar)
I get this message instead of an URL restricted to 2 character string:
Internal Server Error
The server encountered an internal error and was unable to complete
your request. Either the server is overloaded or there is an error in
the application.
Can you tell me what I have done wrong?
Thanks
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en.