Update page 'Day 8 - homework - Sloejtes'
@@ -1,8 +1,7 @@
|
||||

|
||||
|
||||
|
||||
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)
|
||||
|
||||
```
|
||||

|
||||
Reference in New Issue
Block a user