per page, with , order by , clip by
Results of 1 - 5 of about 5 for argparse (0.004 sec.)
Django 1.8.5 リリースノート 11196
Django 1.8.5 リリースノート October 3, 2015 Django 1.8.5 fixes several bugs in 1.8.4. バグ修正 Made the development server's autoreload more robust ( #24704 ). Fixed AssertionError in some delete queries with a model containing a field that ... odelAdmin.list_display that clashed with a reverse field on the model ( #25299 ). Fixed autocompletion for options of non- argparse management commands ( #25372 ). Alphabetized ordering of imports in from django.db import migrations, models statement in ...
https://man.mtool.work/django/6.1/releases/1.8.5.html
Django 1.8 リリースノート 11196
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... ved by the command is now always the dest name specified in the command option definition (as long as the command uses the argparse module). The dbshell command now supports MySQL's optional SSL certificate authority setting ( --ssl-ca ). The new makemig ... rgs command variable, you might get an error like Error: unrecognized arguments: ... , as variable parsing is now based on argparse which doesn't implicitly accept positional arguments. You can make your command backwards compatible by simply setting the ... cls, parser) class method on the test runner and call parser.add_argument to add any custom arguments, as parser is now an argparse.ArgumentParser instance. Model check ensures auto-generated column names are within limits specified by database A field n ...
https://man.mtool.work/django/6.1/releases/1.8.html
カスタム django-admin コマンドの作り方 9357
カスタム django-admin コマンドの作り方 manage.py を用いることで独自のアクションを登録する事ができます。例として、あなたが配布している Django アプリケーションに manage.py アクションを追加したくなったとします。このドキュメントでは、 このチュー ... lete () # ... The option ( delete in our example) is available in the options dict parameter of the handle method. See the argparse Python documentation for more about add_argument usage. 独自のコマンドラインオプションを追加できるのに加え、 管理コマンド ... itional arguments, you can customize the message error returned in the case of missing arguments. The default is output by argparse ("too few arguments"). BaseCommand. output_transaction コマンドが SQL 文を出力するかどうかを決めるブール値。 True の場合、 ...
https://man.mtool.work/django/6.1/howto/custom-management-commands.html
Django の機能廃止のタイムライン 7078
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... IN_REDIRECT_URL settings will be removed. Support for optparse will be dropped for custom management commands (replaced by argparse ). The class django.core.management.NoArgsCommand will be removed. Use BaseCommand instead, which takes no arguments by de ...
https://man.mtool.work/django/6.1/internals/deprecation.html
テストに関する高度なトピック 7078
テストに関する高度なトピック RequestFactory(リクエスト ファクトリ) class RequestFactory [ソース] RequestFactory はテストクライアントと同じ API を共有しています。しかし、ブラウザのように動作するのではなく、 RequestFactory は任意のビューの最 ... uments ( parser ) [ソース] Override this class method to add custom arguments accepted by the test management command. See argparse.ArgumentParser.add_argument() for details about adding arguments to a parser. DiscoverRunner. setup_test_environment ( ** ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
PREV 1 NEXT