Search code examples
pythondjangomacosdockerdevelopment-environment

How to speed up django development - Code reload


I have been moving from php to python for my web-development. Have selected django as my prefeered framework. One thing that bugs is the time it takes for my changes of the python code to reload during development. ~10 sec roughly.

Probably some of my seconds are due to my selected setup of docker-for-mac with mounted volume. But even if it was down to 5sec it would be annoying. I have moved away from the built-in django development server, over to apache 2.4 with mod_wgsi, this improves the speed of the application a lot, but no the python code reloading.

I know it's like comparing apples and oranges, but coming from php my code changes are available immediately. Does anyone have any tips to speed this up?


Solution

  • Traced it back to slow disk access with Docker for Mac.