Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Mapping returns not-found, is it a bug? #68

lingo opened this Issue · 4 comments

3 participants


In my app, I have a mapping as so:

urls = (
            '^/data/(\d+)/(\d+)', 'data',
            '^/data/(\d+)', 'data',
            '^/csv/?(\d+)', 'csvout',
            '^/status/(\d+)', 'status',
            '^/list$', 'list',
            '^/control/(\d+)/(.+)', 'control',
            '^/(keyword)/(.+)', 'search',
            '^/(url)/(.+)', 'search',
            '^/?', 'index'

If I use:

Then the mapping correctly calls my 'search' class.
However, with the following type of URL:

I get "not-found" and the mapping doesn't seem to call my 'search' class.
Is this a bug, or is this my misunderstanding of the mapping system?


  • Luke
@lingo lingo closed this

why closed?

@lingo lingo reopened this

Ah, by accident! Was looking at another issue, sorry.


Works for me with the dev server.

$ curl ''
url abcdef
$ curl ''

And here is the search class that I used.

class search:
    def GET(self, name, value):
        return "%s %s\n" % (name, value)

Can you please test it again?


Closing the bug as it is working as expected.

@anandology anandology closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.