Skip to content

Instantly share code, notes, and snippets.

@pagenoare
Created July 5, 2009 19:17
Show Gist options
  • Save pagenoare/141088 to your computer and use it in GitHub Desktop.
Save pagenoare/141088 to your computer and use it in GitHub Desktop.
#!/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