import something #refers to your .py file with the template handler</p>
<p>...</p>
<pre><code>application = webapp.WSGIApplication([
('/something/something-else/', something.SomeThingElseHandler),
('/something/something-else', something.SomeThingElseHandler),
('/something/something-else/' + '([^/]+)/', something.PageHandler),
#The above pattern will be recognized if you close the url with /
#If you want your url to end without the slash your remove it for the reg ex. like
('/something/something-else/' + '([^/]+)', something.PageHandler),
],
debug=config.DEBUG)
util.run_wsgi_app (приложение)
В something.py
, в вашем class PageHandler
вам необходимо проанализировать ключ или идентификатор, который вы анализируете, вручную, чтобы отобразить правильный контент.