Update page 'Day 8 - homework - Sloejtes'

xuanyi.wang
2023-04-14 01:02:47 +02:00
parent a774c226e1
commit 8aba5b4305
+2 -4
@@ -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)