per page, with , order by , clip by
Results of 1 - 10 of about 17 for BaseCommand (0.007 sec.)
カスタム django-admin コマンドの作り方 15449
カスタム django-admin コマンドの作り方 manage.py を用いることで独自のアクションを登録する事ができます。例として、あなたが配布している Django アプリケーションに manage.py アクションを追加したくなったとします。このドキュメントでは、 このチュー ... te.py モジュールは管理コマンドとして利用できません。 closepoll.py モジュールには一つだけ満たすべき要件があります。それは、 BaseCommand クラスもしくはその サブクラス の一つを継承した Command クラスを定義することです。 スタンドアロンのスクリプト カスタム管理コ ... 装するには、 polls/management/commands/closepoll.py を以下のように編集してください: from django.core.management.base import BaseCommand , CommandError from polls.models import Question as Poll class Command ( BaseCommand ): help = "Closes the specified poll ... るように簡単に変更できます。これらのカスタムオプションは、次のように add_arguments() メソッドで追加できます: class Command ( BaseCommand ): def add_arguments ( self , parser ): # Positional arguments parser . add_argument ( "poll_ids" , nargs = "+" , type = i ...
https://man.mtool.work/django/6.1/howto/custom-management-commands.html
索引 8931
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... のメソッド) (GeometryCollection のメソッド) (RelatedManager のメソッド) add_action() (AdminSite のメソッド) add_arguments() (BaseCommand のメソッド) (DiscoverRunner のクラスメソッド) add_constraint() (BaseDatabaseSchemaEditor のメソッド) add_error() (Form のメ ... get の属性) BaseArchiveIndexView (django.views.generic.dates のクラス) BaseBackend (django.contrib.auth.backends のクラス) BaseCommand (django.core.management のクラス) BaseConstraint (django.db.models のクラス) BaseDatabaseSchemaEditor (django.db.backends. ... ) check django-admin command check コマンドラインオプション --database --deploy --fail-level --list-tags --tag -t check() (BaseCommand のメソッド) check_for_language() (django.utils.translation モジュール) check_password() (django.contrib.auth.hashers モジュ ...
https://man.mtool.work/django/6.1/genindex.html
Django 1.10.1 リリースノート 8500
Django 1.10.1 リリースノート September 1, 2016 Django 1.10.1 fixes several bugs in 1.10. バグ修正 Fixed a crash in MySQL connections where SELECT @@SQL_AUTO_IS_NULL doesn't return a result ( #26991 ). Allowed User.is_authenticated and User. ... is_anonymous properties to be compared using == , != , and | ( #26988 , #27154 ). Removed the broken BaseCommand.usage() method which was for optparse support ( #27000 ). Fixed a checks framework crash with an empty Meta.default_permis ...
https://man.mtool.work/django/6.1/releases/1.10.1.html
ファイルのアップロード 8345
ファイルのアップロード Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト/レスポンス オブジェクト を参照してください)。ここでは、ファイルがどのようにディスクとメモリに ... オブジェクトを構築する場合は、 FileField に File のようなオブジェクトを代入できます: from django.core.management.base import BaseCommand from django.core.files.base import ContentFile class MyCommand ( BaseCommand ): def handle ( self , * args , ** options ): ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
Django の機能廃止のタイムライン 8276
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... 用して深いコピーを作成できないオブジェクトを TestCase.setUpTestData() のクラス属性に割り当てる機能のサポートは削除されます。 BaseCommand.requires_system_checks は真偽値をサポートしなくなります。 django.core.validators.EmailValidator の whitelist 引数と domain ... or custom management commands (replaced by argparse ). The class django.core.management.NoArgsCommand will be removed. Use BaseCommand instead, which takes no arguments by default. django.core.context_processors module will be removed. django.db.models.sql. ... hes instead. django.db.models.loading will be removed. Passing callable arguments to querysets will no longer be possible. BaseCommand.requires_model_validation will be removed in favor of requires_system_checks . Admin validators will be replaced by admin ...
https://man.mtool.work/django/6.1/internals/deprecation.html
Django 3.2 リリースノート 8276
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... an now be called without an active database connection. In that case, check for a consistent migration history is skipped. BaseCommand.requires_system_checks now supports specifying a list of tags. System checks registered in the chosen tags will be checked ... g deep copies with copy.deepcopy() to class attributes in TestCase.setUpTestData() is deprecated. Using a boolean value in BaseCommand.requires_system_checks is deprecated. Use '__all__' instead of True , and [] (an empty list) instead of False . The whitel ...
https://man.mtool.work/django/6.1/releases/3.2.html
Django 1.6 リリースノート 8207
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... e. For custom management commands: Verification of the presence of valid settings in commands that ask for it by using the BaseCommand.can_import_settings internal option is now performed independently from handling of the locale that should be active durin ... g the execution of the command. The latter can now be influenced by the new BaseCommand.leave_locale_alone internal option. See 管理コマンドとロケール for more details. The success_url of DeletionMixin is now i ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 1.10 リリースノート 8121
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... dded a warning to dumpdata if a proxy model is specified (which results in no output) without its concrete parent. The new BaseCommand.requires_migrations_checks attribute may be set to True if you want your command to print a warning, like runserver does, ... is removed. This may affect query counts tested by TransactionTestCase.assertNumQueries() . Support for skip_validation in BaseCommand.execute(**options) is removed. Use skip_checks (added in Django 1.7) instead. loaddata now raises a CommandError instead o ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 1.8 リリースノート 8121
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... ngo includes) will no longer convert null values back to an empty string. This is consistent with other backends. When the BaseCommand.leave_locale_alone attribute is False , translations are now deactivated instead of forcing the "en-us" locale. In the cas ... ls. django.core.management.NoArgsCommand The class NoArgsCommand is now deprecated and will be removed in Django 1.10. Use BaseCommand instead, which takes no arguments by default. Listing all migrations in a project The --list option of the migrate managem ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 2.1 リリースノート 8121
Django 2.1 リリースノート 2018年8月1日 Django 2.1 へようこそ! このリリースノートでは、 バージョン 2.1 の新機能 と、Django 2.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能を ... use pt translations. 管理コマンド The new inspectdb --include-views option allows creating models for database views. The BaseCommand class now uses a custom help formatter so that the standard options like --verbosity or --settings appear last in the help ...
https://man.mtool.work/django/6.1/releases/2.1.html
PREV 1 2 NEXT