I have a django project and i want to create the .pyc files and remove the source code. My project folder name is mysite
and I ran the command python -m compileall mysite
. The .pyc files are created. After that i tried to run my project with python __pycache__/manage.cpython-37.pyc runserver
command but i've got an error such as ModuleNotFoundError: No module named 'mysite'
There are two things I would like to ask about this. First, how can I solve this problem and run my project with .pyc file? Secondly, is it enough to move the .pyc files created to a separate folder in accordance with the django project structure?