Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Webpage does not change after editing it
  2. def app(environ, start_response):
  3.     data = "Hello, World!n"
  4.     start_response("200 OK", [
  5.         ("Content-Type", "text/plain"),
  6.         ("Content-Length", str(len(data)))
  7.     ])
  8.     return iter([data])
  9.        
  10. (web)sl@cker:~/Envs/web/myapp$ cat myapp.py
  11. def app(environ, start_response):
  12.     data = "This is an edit!"
  13.     start_response("200 OK", [
  14.         ("Content-Type", "text/plain"),
  15.         ("Content-Length", str(len(data)))
  16.     ])
  17.     return iter([data])