Code change monitoring malfunctioning with Django 1.7 on mod-wsgi

后端 未结 1 440
花落未央
花落未央 2021-02-06 08:25

This is an issue that I\'ve encountered on all my sites that are running Django 1.7 in mod_wsgi. The nub of the issue is that if, while developing locally, I introduce a fatal

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-06 09:03

    I am not sure what your deployment process is nor your production operating system, but in the Linux/Ubuntu world there is a OS command called pyclean. During my Django/Python deployment scripts (usually via fabric) I issue the command "pyclean ." in the project root. This script recursively deletes all .pyc files starting in the current folder. I hope this helps.

    0 讨论(0)
提交回复
热议问题