4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

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.

0 upvotes $0.00

Replies (0)

Conversation

No replies yet

Replies will appear here as people join the conversation.

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: