<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title> Benjamin Golub's Blog - Latest Comments in Remove trailing slash on App Engine -
Benjamin Golub's Blog</title><link>http://benjamingolub.disqus.com/</link><description></description><atom:link href="https://benjamingolub.disqus.com/remove_trailing_slash_on_app_engine_benjamin_golubs_blog/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 14 Sep 2009 05:56:35 -0000</lastBuildDate><item><title>Re: Remove trailing slash on App Engine -
Benjamin Golub's Blog</title><link>http://www.benjamingolub.com/e/remove-trailing-slash-on-app-engine#comment-16568943</link><description>&lt;p&gt;This totally makes sense, I blame myself for not thinking of it. Thank you for the link, this is a nice piece of code!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeremy Selier</dc:creator><pubDate>Mon, 14 Sep 2009 05:56:35 -0000</pubDate></item><item><title>Re: Remove trailing slash on App Engine -
Benjamin Golub's Blog</title><link>http://www.benjamingolub.com/e/remove-trailing-slash-on-app-engine#comment-16552096</link><description>&lt;p&gt;If everything inherits from BaseRequestHandler and all patterns end in /?&lt;br&gt;then you don't need that. Take a look at my blog's code for how this works:&lt;br&gt;&lt;a href="http://github.com/bgolub/blog/blob/master/main.py" rel="nofollow noopener" target="_blank" title="http://github.com/bgolub/blog/blob/master/main.py"&gt;http://github.com/bgolub/bl...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benjamin Golub</dc:creator><pubDate>Sun, 13 Sep 2009 20:56:03 -0000</pubDate></item><item><title>Re: Remove trailing slash on App Engine -
Benjamin Golub's Blog</title><link>http://www.benjamingolub.com/e/remove-trailing-slash-on-app-engine#comment-16535571</link><description>&lt;p&gt;Hello, thanks for this tip. But in order for this to work, we need to setup in the main function a line to catch every request no?&lt;/p&gt;&lt;p&gt;For example, I have (r"/entry/([^/]+)", views.EntryHandler)&lt;br&gt;If I hit something like "/entry/whatever/" I will get a 404&lt;/p&gt;&lt;p&gt;So in order to this code to work, we need a ("/.*", WhateverHandler), at the end of our main to get every non-catched request, and of course, WhateverHandler will inherit from BaseHandler.&lt;br&gt;Am I correct?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeremy Selier</dc:creator><pubDate>Sun, 13 Sep 2009 09:23:57 -0000</pubDate></item></channel></rss>