This is not the apache cache. After updating the code, the new code must be restarted before it can run.
Since it is a test server, you might as well run Django directly without apache. In fact, after such modification in Django debug mode, you will immediately see the effect and restart it.
Of course, you can also write a shell to automatically restart apache when the file is updated. Gaga
I tell you clearly no!
This is not the apache cache. After updating the code, the new code must be restarted before it can run.
Since it is a test server, you might as well run Django directly without apache. In fact, after such modification in Django debug mode, you will immediately see the effect and restart it.
Of course, you can also write a shell to automatically restart apache when the file is updated. Gaga
Do not modify Apache in the test environment. Just run Django in HTTP mode and it will be ok.