开发者

Eclipse + Django: How to get bytecode output when python source files change?

Whenever I change my python source files in my Django project, the .pyc files become out of date. Of course that's because I need to recompile them in order to test them through my local Apache we开发者_运维百科b server. I would like to get around this manual process by employing some automatic means of compiling them on save, or on build through Eclipse, or something like that. What's the best and proper way to do this?


You shouldn't ever need to 'compile' your .pyc files manually. This is always done automatically at runtime by the Python interpreter.

In rare instances, such as when you delete an entire .py module, you may need to manually delete the corresponding .pyc. But there's no need to do any other manual compiling.

What makes you think you need to do this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜