Created
July 5, 2009 19:17
-
-
Save pagenoare/141088 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from pygnite import * | |
@get('/all/#:page?') | |
def index(request): | |
return 'Hello world' | |
#127.0.0.1 - - [05/Jul/2009 21:14:48] "GET /all/aa HTTP/1.1" 404 - | |
#127.0.0.1 - - [05/Jul/2009 21:14:49] "GET /all/1 HTTP/1.1" 200 - | |
#127.0.0.1 - - [05/Jul/2009 21:14:52] "GET /all HTTP/1.1" 200 - | |
#127.0.0.1 - - [05/Jul/2009 21:15:51] "GET /all/ HTTP/1.1" 200 - | |
if __name__ == '__main__': pygnite(debug='www') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment