per page, with , order by , clip by
Results of 1 - 7 of about 7 for CommandError (0.009 sec.)
カスタム django-admin コマンドの作り方 13504
カスタム django-admin コマンドの作り方 manage.py を用いることで独自のアクションを登録する事ができます。例として、あなたが配布している Django アプリケーションに manage.py アクションを追加したくなったとします。このドキュメントでは、 このチュー ... lls/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 for voting" def ... r poll_id in options [ "poll_ids" ]: try : poll = Poll . objects . get ( pk = poll_id ) except Poll . DoesNotExist : raise CommandError ( 'Poll " %s " does not exist' % poll_id ) poll . opened = False poll . save () self . stdout . write ( self . style . SUC ... を受け取り、それぞれに対応した poll.opened を False にセットします。もしコマンドの利用者が存在しない poll を指定した場合、 CommandError 例外が発生します。 poll.opened 属性は元の チュートリアル には存在しないので、この例では polls.models.Question モデルに追加 ...
https://man.mtool.work/django/6.1/howto/custom-management-commands.html
django-admin と manage.py 8524
django-admin と manage.py django-admin は Django の管理タスクのためのコマンドラインユーティリティです。このドキュメントでは、その機能の全体を一通り説明します。 さらに、 manage.py は各 Django プロジェクト内に自動的に作成されます。 jango-admi ... は現在のプロジェクトの settings.py を使用するからです。 使用例: django-admin migrate --settings=mysite.settings --traceback CommandError が発生した場合、完全なスタックトレースを表示します。デフォルトでは、 django-admin は CommandError が発生するとエラーメッセ ...
https://man.mtool.work/django/6.1/ref/django-admin.html
Django 1.5 リリースノート 8524
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... nds do not raise SystemExit any more when called by code from call_command() . Any exception raised by the command (mostly CommandError ) is propagated. Moreover, when you output errors or messages in your custom commands, you should now use self.stdout.writ ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django 3.1 リリースノート 8524
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... tion makes the command exit with a non-zero status when unapplied migrations are detected. The new returncode argument for CommandError allows customizing the exit status for management commands. The new dbshell -- ARGUMENTS option allows passing extra argum ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 1.10 リリースノート 8251
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... idation in BaseCommand.execute(**options) is removed. Use skip_checks (added in Django 1.7) instead. loaddata now raises a CommandError instead of showing a warning when the specified fixture file is not found. Instead of directly accessing the LogEntry.chan ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 1.7 リリースノート 8251
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... ns on how to manually delete objects from deleted forms. Loading empty fixtures emits a RuntimeWarning rather than raising CommandError . django.contrib.staticfiles.views.serve() will now raise an Http404 exception instead of ImproperlyConfigured when DEBUG ...
https://man.mtool.work/django/6.1/releases/1.7.html
索引 7979
索引 記号 | _ | 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 コマン ... put -c -i -l -n color_interp() (GDALBand のメソッド) ColorInput (django.forms のクラス) ComboField (django.forms のクラス) CommandError comment template tag commit() (django.db.transaction モジュール) Common Vulnerabilities and Exposures CVE 2007-0404 CVE 20 ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 NEXT