From 8aba5b43051019c46866184a06d6b3b866f4629a Mon Sep 17 00:00:00 2001 From: "xuanyi.wang" Date: Fri, 14 Apr 2023 01:02:47 +0200 Subject: [PATCH] Update page 'Day 8 - homework - Sloejtes' --- Day 8 - homework - Sloejtes.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Day 8 - homework - Sloejtes.md b/Day 8 - homework - Sloejtes.md index 9906640..5bc6e11 100644 --- a/Day 8 - homework - Sloejtes.md +++ b/Day 8 - homework - Sloejtes.md @@ -1,8 +1,7 @@ ![Original](https://gogs.gtsplab.com:5432/j/python-bootcamp/raw/Branch_Sloetjes/Original.png) - -An example of replacing the `httpserver.py` file with `Gunicorn`: - +**An example of replacing the `httpserver.py` file with `Gunicorn`: +** ``` import os from urllib.parse import urlparse @@ -48,6 +47,5 @@ if __name__ == '__main__': app = DispatcherMiddleware(JPEGRequestHandler(app), {'/': app}) run_simple('0.0.0.0', 8000, app, use_reloader=True) - ``` ![Gunicorn](https://gogs.gtsplab.com:5432/j/python-bootcamp/raw/Branch_Sloetjes/Gunicorn.png) \ No newline at end of file