webapp2 + jinja2: How can i get uri_for() working in jinja2-views
How can i add pass Model-Specific urls to the Template. Let's say, i want to build an edit-link. I would guess, using the uri_for() function would be an easy approach. But the following gives me "UndefinedError: 'webapp2' is undefined" {% webapp2.uri_for("editGreeting", greeting.key().id()) %} Or should i prepare these in the MainPage-Request-Handler? If so, i don't know how to add them to each greeting. The following Code-Example is taken from: http://webapp-improved.appspot.com/tutorials/gettingstarted/templates.html Controller/Handler class MainPage(webapp2.RequestHandler): def get(self):