I know It is too late to answer. Even though It might help.
I have created a setup.py file in the project home directory.
from distutils.core import setup
from Cython.Build import cythonize
fileSet = set()
fileSet.add("app1/file1.py")
fileSet.add("app2/file2.py")
fileSet.add("app3/file3.py")
setup(
ext_modules=cythonize(fileSet)
)
Scan your app directories and add files to the fileSet whatever you want to compile. file1.py, file2.py and file3.py are just examples only.
Finally, just run the setup.py file as below
python setup.py build_ext --inplace
Then Cython stats compiling each file and makes it .so file.
Example: app1/file1.so app2/file2.so app3/file3.so
These files are shared object files and you cannot interpret manually.
Delete all .py and .pyc files. And then run your project as
python manage.py runserver
or you can host these binaries in your production server. I tried on NGINX, uWSGI.
Good Luck.