django remove source files and generate pyc files

可紊 提交于 2019-12-01 07:48:44

问题


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


回答1:


compileall can be used to compile all Python scripts in the project directory.

python -m compileall path/to/project


来源:https://stackoverflow.com/questions/4311265/django-remove-source-files-and-generate-pyc-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!