3 ms·
Oh I've been looking at how this works. Django does this built in. Thanks for the link!
by incomingpain 4y ago
Oh I've been looking at how this works. Django does this built in.
Thanks for the link!
- okso 4y agoDjango does this by storing the state in the database, starting the main Django in a thread that can be restarted on code change [1] ; It does not keep the state in memory. https://github.com/django/django/blob/e34dfad0a310c616c7b62e0f1dba10f10adf547a/django/utils/autoreload.py https://github.com/django/django/blob/e34dfad0a310c616c7b62e...