django 删除源文件并生成pyc文件 [英] django remove source files and generate pyc files
本文介绍了django 删除源文件并生成pyc文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除我的 django 项目中的所有 .py 文件.但尚未生成 pyc 文件..
I want to remove all .py files in my django project.But pyc files are not generated as yet..
生成 .pyc 文件需要更改哪些设置
What is the settings that needs to be changed to generate the .pyc files
推荐答案
compileall
可用于编译项目目录下的所有 Python 脚本.
compileall
can be used to compile all Python scripts in the project directory.
python -m compileall path/to/project
这篇关于django 删除源文件并生成pyc文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文