1 #!/usr/bin/env python 2 3 from WebStack.Adapters.Twisted import deploy 4 from SimpleWithLogin import get_site_map 5 6 # Change this to be the exact URL. 7 # eg. http://localhost:8000/myapp/login 8 9 login_url = "http://localhost:8080/login" 10 11 # Change this to be the URL base for your server. 12 # eg. http://localhost:8000 13 14 app_url = "http://localhost:8080" # No trailing "/"! 15 16 # Must match the key used elsewhere. 17 18 secret_key = "horses" 19 20 resource = get_site_map(app_url, login_url, secret_key) 21 22 print "Serving..." 23 deploy(resource, handle_errors=0) 24 25 # vim: tabstop=4 expandtab shiftwidth=4