per page, with , order by , clip by
Results of 1 - 10 of about 69 for messages (0.006 sec.)
メッセージフレームワーク 16346
メッセージフレームワーク Web アプリケーションでは非常に一般的に、フォームやその他のユーザーインプットのプロセスの後、ユーザーに向けて一過性の通知メッセージ ("フラッシュメッセージ" とも言われます) を表示する必要があります。 Django は、anonym ... によって生成されたデフォルトの settings.py は、メッセージ機能を有効にするために必要な設定を全て含んでいます: 'django.contrib.messages' は、 INSTALLED_APPS の中にあります。 MIDDLEWARE は 'django.contrib.sessions.middleware.SessionMiddleware' と 'django.cont ... rib.messages.middleware.MessageMiddleware' を含みます。 デフォルトの ストレージバックエンド は sessions に依存します。そのため SessionM ... 必要があります。 TEMPLATES 設定で定義した DjangoTemplates バックエンドの 'context_processors' オプションは、 'django.contrib.messages.context_processors.messages' を含みます。 メッセージを使いたくない場合は、 INSTALLED_APPS から 'django.contrib.messages' を ...
https://man.mtool.work/django/6.1/ref/contrib/messages.html
メールを送信する 11312
メールを送信する Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework also supports swapping in different delivery mechanisms: you can direct email to the console ... o substitute Django's memory email backend . This prevents test cases from sending real email and gives them access to the messages that would have been sent. 開発用にメールを設定する discusses some other approaches. Changed in Django 6.1: In earlier rel ... n. For example, Django's logging AdminEmailHandler allows specifying the mailer configuration in its using option. Sending messages django.core.mail provides functions for conveniently sending email, as well as classes for building and sending more compl ... ex email messages with attachments and multiple content types. 注釈 django.core.mail で送信されるメールの文字セットは、 DEFAULT_CHARSET 設定 ...
https://man.mtool.work/django/6.1/topics/email.html
Django 1.2 リリースノート 10845
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... on inspired by Django's form validation. Vastly improved protection against Cross-Site Request Forgery (CSRF). A new user "messages" framework with support for cookie- and session-based message for both anonymous and authenticated users. Hooks for object ... where an attacking site tricks a user's browser into logging into a site with someone else's credentials, is also covered. Messages framework Django now includes a robust and configurable messages framework with built-in support for cookie- and session-b ... ased messaging, for both anonymous and authenticated clients. The messages framework replaces the deprecated user message API and allows you to temporarily store messages in one request and retriev ...
https://man.mtool.work/django/6.1/releases/1.2.html
モデルフォーム 8597
モデルフォーム ModelForm API リファレンス。 ModelForm の使用に関する入門的な資料は、トピックガイドの モデルからフォームを作成する を参照してください。 モデルフォームの Meta API class ModelFormOptions [ソース] The _meta API is used to build ... クラスにはどんな属性も定義することができます。タイプミスや不正確な属性名によってエラーが送出されることはありません。 error_messages ModelFormOptions. error_messages モデルフィールド名をキーとする辞書であり、その値としてエラーメッセージキー( null 、 blan ... 応付けた辞書を持ちます。 指定されていないフィールドについては、 Django はそのモデルフィールドの django.db.models.Field.error_messages に定義されたエラーメッセージで代用するか、最終的にはそのフィールド型のデフォルトエラーメッセージを適用します。 exclude Mod ... = None , formfield_callback = None , widgets = None , localized_fields = None , labels = None , help_texts = None , error_messages = None , field_classes = None ) [ソース] 与えられた model に対して ModelForm を返します。必要に応じて form 引数を渡すことで ...
https://man.mtool.work/django/6.1/ref/forms/models.html
モデルからフォームを作成する 7918
モデルからフォームを作成する ModelForm class ModelForm [ソース] データベース中心のアプリケーションを作成している場合、Django モデルに密接にマップするフォームを使うことになるでしょう。例えば、 BlogComment モデルを持っていて、閲覧者がコメント ... ess or constraint checks are made. See Validating objects for more information on the model's clean() hook. モデルの error_messages についての注意 Error messages defined at the form field level ( django.forms.Field.error_messages ) or at the form Meta le ... vel always take precedence over the error messages defined at the model field level ( django.db.models.Field.error_messages ). Error messages defined on model fields ( djang ... o.db.models.Field.error_messages ) are only used when the ValidationError is raised during the model validation step and no corresponding error messages ar ...
https://man.mtool.work/django/6.1/topics/forms/modelforms.html
バリデータ (Validator) 7791
バリデータ (Validator) これらのバリデータは django.contrib.postgres.validators モジュールから利用可能です。 KeysValidator class KeysValidator ( keys , strict = False , messages = None ) [ソース] 与えられたキーが値に含まれていることを検証しま ... す。もし strict が True の場合、他にキーが存在しないことも確認します。 渡される messages は、 missing_keys および/または extra_keys を含む辞書である必要があります。 注釈 与えられたキーの存在のみを確認し、キーの値 ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/validators.html
ページ分割 (Paginator) 7579
ページ分割 (Paginator) Django はページ分割されたデータを管理するのに役立ついくつかのクラスを提供しています。これらのクラスは django/core/paginator.py にあります。 例については ページ分割 (Pagination) のトピックガイド を参照してください。 Pa ... ginator class class Paginator ( object_list , per_page , orphans = 0 , allow_empty_first_page = True , error_messages = None ) [ソース] Paginator(ページネーター)は len() の使用時、または直接イテレートしたときは Page のシーケンスのように動 ... t page is allowed to be empty. If False and object_list is empty, then an EmptyPage error will be raised. Paginator. error_messages error_messages 引数を指定すると、paginator がデフォルトで返すメッセージを上書きできます。オーバーライドしたいエラーメッセー ... ains no results そしてこれがカスタムエラーメッセージです: >>> paginator = Paginator ( ... [ 1 , 2 , 3 ], ... 2 , ... error_messages = { "no_results" : "Page does not exist" }, ... ) >>> paginator . page ( 5 ) Traceback (most recent call last): ... EmptyP ...
https://man.mtool.work/django/6.1/ref/paginator.html
Migrating email to mailers 7508
Migrating email to mailers Django 6.1 introduced the MAILERS setting, replacing EMAIL_BACKEND and several other EMAIL_* settings. It also introduced mail.mailers for obtaining configured email backend instances, replacing mail.get_connectio ... ents Replace with mailers.default . For example, update this code: connection = mail . get_connection () connection . send_messages ([ email1 , email2 ]) To: connection = mail . mailers . default connection . send_messages ([ email1 , email2 ]) Note that ... .EmailBackend" , option1 = True , option2 = "value" ) mail . send_mail ( ... , connection = connection ) connection . send_messages ([ email1 , email2 ]) Define a custom MAILERS configuration in your settings: MAILERS = { "default" : { ... }, "custom" : ... value" , }, }, } And then use it like this: mail . send_mail ( ... , using = "custom" ) mail . mailers [ "custom" ] . send_messages ([ email1 , email2 ]) Replacing fail_silently The deprecated fail_silently arguments to send_mail() , send_mass_mail() , m ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
設定 7451
設定 警告 設定を上書きするとき、特にデフォルト値が空でないリストや辞書の場合、例えば STATICFILES_FINDERS などは、注意してください。Djangoの使用したい機能に必要なコンポーネントを保持するようにしてください。 コアの設定 ここでは、Django の cor ... w/project/common_files/locale" , "/var/local/translations/locale" , ] Django は、実際の翻訳ファイルを含む <locale_code>/LC_MESSAGES ディレクトリに対して、これらのパス内をそれぞれ見ていきます。 LOGGING デフォルト値: ロギング設定のディレクトリ。 設定情報を ... che , or are using the default get_session_auth_hash() . CookieStorage または FallbackStorage を使用している場合、すべての messages 。 すべての PasswordResetView トークン。 異なるキーが指定されていない限り、すべての 暗号署名 の使用。 SECRET_KEY で設定され ... 照してください。デフォルトでは、バリデーションは実行されず、すべてのパスワードが受け入れられます。 メッセージ django.contrib.messages の設定。 MESSAGE_LEVEL デフォルト値: messages.INFO メッセージフレームワークによって記録されるメッセージレベルの最小値を設定 ...
https://man.mtool.work/django/6.1/ref/settings.html
Django 3.2 リリースノート 7451
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... exception, when the management form is missing or has been tampered with. To customize this error message, pass the error_messages argument with the key 'missing_management_form' when instantiating the formset. ジェネリックビュー (汎用ビュー) The week_f ... in validators now include the provided value in the params argument of a raised ValidationError . This allows custom error messages to use the %(value)s placeholder. The ValidationError equality operator now ignores messages and params ordering. Backward ... stead of raising BlockingIOError . The password reset mechanism now invalidates tokens when the user email is changed. makemessages command no longer processes invalid locales specified using makemessages --locale option, when they contain hyphens ( '-' ...
https://man.mtool.work/django/6.1/releases/3.2.html
PREV 1 2 3 4 5 6 7 NEXT