
Gunicorn — autoreload app
Do you run your Django app under Gunicorn and want to reload it once you change the source code? No problem!
In the past I used directive max-requests=1 but the time showed it’s not the best solution especially when you have a page with multiple AJAX requests. The app is reload after each AJAX request. The result is pretty much slow application.
The solution is to use reload=1 or reload=True if you use .py configuration. Gunicorn watches source code and reload itself after each change - and let’s you know in command line.
Leave Gunicorn — autoreload app to:
Read more #python posts
Best Posts From n1
We have not curated any of n1-cz's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From n1
- How to mount host share directory in Virtualbox Linux system
- Project documentation aka own wiki(ish) docs
- How to publish a package to PyPI
- Postgres and date subtracting
- Twitter on blockchain
- Docker + your development and production environments
- Django’s new Extract*() classes
- Docker + SQLite 3
- Vue.js - init a component inside a component programmatically
- Gunicorn — autoreload app