我正在使用jython 2.7。当我尝试使用命令
进行迁移时Jython manage.py迁移 APP_NAME
显示以下错误。
Please provide a CPython 2.7 bytecode file (.pyc) to proceed, e.g. run
python -m py_compile /scratch/code/Stayflexi/StayflexiApp/idb_platform/migrations/0001_initial.py
and try again.
Alternatively provide proper CPython 2.7 execute command via
cpython_cmd property, e.g. call
jython -J-Dcpython_cmd=python
or if running pip on Jython:
pip install --global-option="-J-Dcpython_cmd=python" <package>