uwsgi-hello-world-test.py 367 B

1234567891011
  1. # After creating virtual env & pip install uwsgi.
  2. # Client-uwsgi test:
  3. # Run with uwsgi --http :8000 --wsgi-file uwsgi-hello-world-test.py
  4. # Client-nginx-uwsgi test:
  5. # uwsgi --socket :8001 --wsgi-file uwsgi-hello-world-test.py
  6. def application(env, start_response):
  7. start_response('200 OK', [('Content-Type','text/html')])
  8. return [b"Hello World"] # python3