2016-09-29 8 views
1

をインストール、構成しました

例:

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 

答えて

2

読むドキュメント:PythonとDjangoの のバージョンとhttp://django-extensions.readthedocs.io/en/stable/

互換性は我々がサポートPythonとDjangoのバージョンのDjangoのガイドラインに従ってください。 Djangoのサポートされているバージョンをもっと見る

これは、django-extensionsが古いバージョンやサポートされていないバージョンでも動作する可能性がありますが、保証していない可能性があり、古いバージョンとの非互換性に関するバグは修正されません。

この時点で、Python 2.7,3.4,3.5、pypy、pypy3の有効な組み合わせをテストし、Djangoバージョン1.8と1.9でサポートしています。

Djangoを1.8にアップグレードするか、古いバージョンのdjango-extensionsを使用することができます。

+0

ありがとうございました...私はバージョンサポートを確認するためにドキュメントを見ました。探している人のために、Django 1.7をサポートする最後のバージョンは '1.6.7'です。 –

+0

これは、なぜ 'shell_plus'がうまくいかなかったのかを知るのに役立ちました – semiomant

関連する問題