django删除源文件并生成pyc文件 [英] django remove source files and generate pyc files

查看:1157
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆