简体   繁体   中英

django remove source files and generate pyc files

I want to remove all .py files in my django project.But pyc files are not generated as yet..

What is the settings that needs to be changed to generate the .pyc files

compileall可用于编译项目目录中的所有Python脚本。

python -m compileall path/to/project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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