Django delete source files and generate pyc files

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

What are the settings that you need to change to create .pyc files.

+3
source share
1 answer

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

python -m compileall path/to/project
+10
source

Source: https://habr.com/ru/post/1777606/


All Articles