Hey there!

I too was having this same problem, other scripts and reset routines weren't doing the job for me.

But i threw this together and it works quite well for me, near the top of the manage.py

# unload django modules to release cached files. Server reload will reflect changes in code without full Pythonista restart if settings.DEBUG: names = [name for name in sys.modules.keys() if name.startswith('django.')] for name in names: del sys.modules[name] print(f'Unloaded {len(names)} django modules.')

Hope this helps!

Benjamin