问题
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