This commit is contained in:
2018-10-12 13:27:02 -04:00
parent 701e57c264
commit bfc6778dca
+1 -1
View File
@@ -26,7 +26,7 @@ if __name__ == '__main__':
api.run()
```
This gets you a WSGI app, with WhiteNoise pre-installed, jinja2 templating (without additional imports), and a production webserver (ready for slowloris attacks), serving up requests with gzip compression automatically.
This gets you a ASGI app, with a production static files server pre-installed, jinja2 templating (without additional imports), and a production webserver (ready for slowloris attacks), serving up requests with gzip compression automatically.
Class-based views (and setting some headers and stuff):