简体   繁体   English

扭曲下的py更新不反映

[英]py updates under Twisted not reflecting

I'm changing a .py file which runs part of a Twisted environment. 我正在更改一个运行在Twisted环境中的.py文件。 However the update is not reflected when the script runs. 但是,脚本运行时不会反映更新。

I did these steps to no avail: a. 我做这些步骤无济于事: touched the wsgi file, b. 触摸了wsgi文件,b。 restarted apache, c. 重新启动Apache,c。 deleted the corresponding .pyc file. 删除了相应的.pyc文件。

Any light someone could shed would be super! 有人能散发出的任何光都是超级! Thanks. 谢谢。

Nobody can really say. 没人可以说。 There isn't enough detail in the question. 问题中没有足够的细节。

One possible problem is that your Django app that "uses Twisted" does so by running Twisted in a subprocess or a separate process. 一个可能的问题是,“使用Twisted”的Django应用通过在子进程或单独的进程中运行Twisted来做到这一点。 Maybe your Apache stuff is re-running your whole Django script but there's a Twisted process off on the side that keeps running? 也许您的Apache资料正在重新运行您的整个Django脚本,但是一直在运行的Twisted进程仍然存在?

Alternately, maybe some part of your deployment infrastructure is calling reload() on your Django modules but Twisted is in some other thread and therefore not affected by that? 或者,您的部署基础结构的某些部分可能正在Django模块上调用reload() ,但是Twisted在其他线程中,因此不受此影响吗?

(Please consider attaching an SSCCE to this in order to give respondents something to go off of.) (请考虑在此上附加SSCCE ,以使受访者不满意 。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM