django remove source files and generate pyc files

后端 未结 1 512
不思量自难忘°
不思量自难忘° 2021-01-14 05:07

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条回答
  • 2021-01-14 05:40

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

    python -m compileall path/to/project
    
    0 讨论(0)
提交回复
热议问题