Skip to content

Instantly share code, notes, and snippets.

@ryanwitt
Created August 14, 2012 03:32
Show Gist options
  • Save ryanwitt/3346074 to your computer and use it in GitHub Desktop.
Save ryanwitt/3346074 to your computer and use it in GitHub Desktop.
fun simulating django request objects
class Request(object):
def __init__(self, host, path):
self.get_host = lambda:host
self.get_full_path = lambda:path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment