Django pyc not updating

My django application has recently started exhibiting this behaviour in live.When I check out a new release and expand it into the appropriate directory (replacing the existing version), the new versions of the files are not picked up.However, if it happens you have modules that existed before when you roll back changes and *files are left lying around, strange bugs can appear as pyc files can be execute even if the original python file doesn't exist anymore.

If I introduce errors directly into (like changing the spelling of a method) then it doesn't complain, even after restarting the server.file) but the updated code is not being displayed in the behavior of the application.Ive already tried several attempts to solve this problem.If you need to create a file for a module that is not imported, you can use the py_compile and compileall modules.The py_compile module can manually compile any module.

Leave a Reply