1 #!/usr/bin/env python 2 3 # Uncomment and adjust the paths below if WebStack is not installed somewhere 4 # on the PYTHONPATH. 5 6 #import sys 7 #sys.path.append("/home/paulb/Software/Python/WebStack") 8 #sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") 9 10 from WebStack.Adapters.WSGI import deploy_as_cgi 11 from Simple import SimpleResource 12 13 # Change this to be the exact URL. 14 # eg. http://localhost:8000/myapp/login 15 16 login_url = "http://localhost/wsgi/login" 17 18 # Change this to be the URL base for your server. 19 # eg. http://localhost:8000 20 21 app_url = "http://localhost" # No trailing "/"! 22 23 # Must match the key used elsewhere. 24 25 secret_key = "horses" 26 27 resource = get_site_map(app_url, login_url, secret_key) 28 29 deploy_as_cgi(resource, handle_errors=0) 30 31 # vim: tabstop=4 expandtab shiftwidth=4