Never use django's code-reloading as this terminates the devappserver without warning. Use the devappserver code reloading instead