per page, with , order by , clip by
Results of 1 - 10 of about 54 for ValueError (0.003 sec.)
Django's Tasks framework 11510
Django's Tasks framework New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's often more than just turning HTTP requests into HTTP responses. For some functionality, it may be ... ribute: >>> result . status SUCCESSFUL >>> result . return_value 42 If the Task has not finished executing, or has failed, ValueError is raised. >>> result . status RUNNING >>> result . return_value Traceback (most recent call last): ... ValueError : Task ... kError containing information about error raised during the execution: >>> result . errors [ 0 ] . exception_class <class 'ValueError'> Note that this is just the type of exception, and contains no other values. The traceback information is reduced to a st ...
https://man.mtool.work/django/6.1/topics/tasks.html
一対一 (one-to-one) 関係 10620
一対一 (one-to-one) 関係 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: from django.db import models class Place ( models . Model ): name = models . CharField ( max_len ... てるには、オブジェクトを保存する必要があることに注意してください。例えば、保存されていない Place で Restaurant を作成すると ValueError が発生します: >>> p3 = Place ( name = "Demon Dogs" , address = "944 W. Fullerton" ) >>> Restaurant . objects . create ( pl ... ace = p3 , serves_hot_dogs = True , serves_pizza = False ) Traceback (most recent call last): ... ValueError : save() prohibited to prevent data loss due to unsaved related object 'place'. Restaurant.objects.all() は Place のセット ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
URL ディスパッチャ 10620
URL ディスパッチャ すっきりした、簡潔で明解な URL スキームは、高品質な Web アプリケーションでは重要な要素です。 Django では、フレームワークの制限なしに、望み通りの URL を設計できます。 URL はすっきりした扱いやすいものにすべきであるという主張 ... ます。 to_python(self, value) メソッドで、マッチした文字列をビュー関数に渡す型に変換します。与えられた値を変換できない場合は ValueError を発生させます。 ValueError はマッチしないと解釈され、別のURLパターンがマッチしない限り、結果として404レスポンスがユーザー ... されます。 to_url(self, value) メソッドで、 Python の型を URL で使用する文字列に変換します。与えられた値を変換できない場合は ValueError を発生させる必要があります。 ValueError はマッチしないと解釈され、結果として reverse() は NoReverseMatch を発生させます。 ... URL name, reverse() matches the number of arguments and the names of the keyword arguments. Path converters can also raise ValueError to indicate no match, see 独自のパスコンバータを登録する for details. URL の名前空間 はじめに URL名前空間を使用すると、異な ...
https://man.mtool.work/django/6.1/topics/http/urls.html
Django 1.8 リリースノート 10175
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... ( name = "Django" ) >>> book . author = Author ( name = "John" ) >>> book . save () Traceback (most recent call last): ... ValueError : save() prohibited to prevent data loss due to unsaved related object 'author'. A similar check on assignment to reverse ... as removed in Django 1.8.5. Assigning unsaved objects to a ForeignKey , GenericForeignKey , and OneToOneField now raises a ValueError . Previously, the assignment of an unsaved object would be silently ignored. For example: >>> book = Book . objects . crea ... r will be raised to prevent data loss: >>> book . author = Author ( name = "john" ) Traceback (most recent call last): ... ValueError : Cannot assign "<Author: John>": "Author" instance isn't saved in the database. If you require allowing the assignment of ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 3.2.19 リリースノート 10175
Django 3.2.19 リリースノート 2023年5月3日 Django 3.2.19 は、3.2.18 の深刻度 "low" のセキュリティ問題を修正しました。 CVE-2023-31047: 1つのフォームフィールドを使用して複数のファイルをアップロードする際の検証のバイパスが可能な脆弱性 forms.Fil ... 脆弱性を回避するために、 ClearableFileInput と FileInput フォームウィジェットは、 multiple HTML 属性が設定されている場合に ValueError を発生させるようになりました。例外を防ぎ、以前の動作を維持するには、 allow_multiple_selected を True に設定してください。 ...
https://man.mtool.work/django/6.1/releases/3.2.19.html
Django 4.1.9 リリースノート 10175
Django 4.1.9 リリースノート 2023年5月3日 Django 4.1.9 は、4.1.8 の深刻度 "low" のセキュリティ問題を修正しました。 CVE-2023-31047: 1つのフォームフィールドを使用して複数のファイルをアップロードする際の検証のバイパスが可能な脆弱性 forms.FileFi ... 脆弱性を回避するために、 ClearableFileInput と FileInput フォームウィジェットは、 multiple HTML 属性が設定されている場合に ValueError を発生させるようになりました。例外を防ぎ、以前の動作を維持するには、 allow_multiple_selected を True に設定してください。 ...
https://man.mtool.work/django/6.1/releases/4.1.9.html
複合主キー 9730
複合主キー Django では、すべてのモデルに主キーが存在します。デフォルトでは、この主キーは単一のフィールドで構成されます。 ほとんどの場合、単一の主キーで十分です。しかし、データベース設計においては、複数のフィールドからなる主キーが必要になるこ ... er_id" ) -- OK MAX ( "product_id" , "order_id" ) -- ERROR 複合主キーは複数のカラム表現を含むため、このような関数に渡すと、 ValueError が発生します。 ただし Count だけは例外で、複合主キーでも利用できます。 Max ( "order_id" ) # OK Max ( "pk" ) # ValueError C ...
https://man.mtool.work/django/6.1/topics/composite-primary-key.html
多対一 (many-to-one) 関係 9730
多対一 (many-to-one) 関係 多対一のリレーションシップを定義するには ForeignKey を使います。 この例では、 Reporter は複数の Article オブジェクトと関連付けることができますが、 Article は一つの Reporter オブジェクトしか持つことができません: fro ... 入する前に保存する必要があることに注意してください。たとえば、保存されていない Reporter で Article を作成すると、次のように ValueError が発生します。 >>> r3 = Reporter ( first_name = "John" , last_name = "Smith" , email = "john@example.com" ) >>> Article . ... eadline = "This is a test" , pub_date = date ( 2005 , 7 , 27 ), reporter = r3 ... ) Traceback (most recent call last): ... ValueError : save() prohibited to prevent data loss due to unsaved related object 'reporter'. Article オブジェクトはリレーション先オブ ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_one.html
Django 4.2.14 リリースノート 9271
Django 4.2.14 リリースノート 2024年7月9日 Django 4.2.14では、4.2.13における2件の深刻度 "moderate" のセキュリティ問題と2件の深刻度 "low" のセキュリティ問題が修正されています。 CVE-2024-38875: django.utils.html.urlize() における潜在的なサービ ... 。 言語コードが500文字を超える場合、 strict が True の場合、または汎用バリアントが存在せず strict が False の場合には、現在 ValueError が発生するようになりました。 ...
https://man.mtool.work/django/6.1/releases/4.2.14.html
Django 5.0.2 リリースノート 8826
Django 5.0.2 リリースノート 2024年2月6日 Django 5.0.2 では、 5.0.1 における深刻度 "moderate" のセキュリティの問題1件と、いくつかのバグを修正しました。また、 Transifex からの最新の文字列翻訳が反映されました。 CVE-2024-24680: intcomma テンプレ ... edRelation() のクラッシュを引き起こしていました ( #35135 )。 FilteredRelation() は現在、右辺としてクエリセットを持つ場合に ValueError を発生させます。 Django 5.0 において、ベースのクエリセットが prefetch_related() を使用していた場合に、 dumpdata 管理コマン ...
https://man.mtool.work/django/6.1/releases/5.0.2.html
PREV 1 2 3 4 5 6 NEXT