django 扩展 graph_models returns "no such option"

django-extensions graph_models returns "no such option"

当尝试 运行 graph_models 时,它总是失败 manage.py: error: no such option:

示例:

python manage.py graph_models -a -g -o django_schema.png
Usage: manage.py graph_models [options]

Creates a GraphViz dot file for the specified app names. You can pass multiple app names and they will all be combined into a single model. Output is usually directed to a dot file.

manage.py: error: no such option: -a

阅读文档:http://django-extensions.readthedocs.io/en/stable/

Compatibility with versions of Python and Django We follow the Django guidelines for supported Python and Django versions. See more at Django Supported Versions

This might mean the django-extensions may work with older or unsupported versions but we do not guarantee it and most likely will not fix bugs related to incompatibilities with older versions.

At this time we test on and thrive to support valid combinations of Python 2.7, 3.4, 3.5, pypy and pypy3 with Django versions 1.8 and 1.9.

将 Django 升级到 1.8 或者使用旧版本的 django-extensions。