Created
September 25, 2008 20:17
-
-
Save trek/12929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from routes import * | |
from routes.util import url_for | |
m = Mapper() | |
m.resource('blog', 'blogs') | |
m.create_regs(['blogs']) | |
url_for('blog', id=2) # outputs '/blogs/2' | |
m.match('/blogs/2') # no match | |
m.match(url_for('blog', id=2)) # no match |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment