per page, with , order by , clip by
Results of 1 - 10 of about 37 for Traceback (0.003 sec.)
Django's Tasks framework 14049
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 ... and return values are serialized to JSON, they must be JSON-serializable: >>> process_data . enqueue ( datetime . now ()) Traceback (most recent call last): ... TypeError : Object of type datetime is not JSON serializable Arguments must also be able to r ... t backend: >>> result = double_dictionary . enqueue (( 1 , 2 , 3 )) >>> result . status FAILED >>> result . errors [ 0 ] . traceback Traceback (most recent call last): ... TypeError : unhashable type: 'list' The double_dictionary Task fails because after ... ask has not finished executing, or has failed, ValueError is raised. >>> result . status RUNNING >>> result . return_value Traceback (most recent call last): ... ValueError : Task has not finished yet Errors If the Task doesn't succeed, and instead raises ...
https://man.mtool.work/django/6.1/topics/tasks.html
エラーレポートの管理 12881
エラーレポートの管理 サイトを公開している場合、 DEBUG 設定は常にオフにしておかなければなりません。これにより、サーバー動作は高速になり、エラーページによって明らかになるアプリケーションの詳細が悪意あるユーザーに漏れるのを防ぎます。 しかし、 ... 、通常は、エラーに関する関連情報をできるだけ多く記録しておくと便利です。例えば、デフォルトでは Django は発生した例外の full traceback や、各 traceback frame のローカル変数、 HttpRequest の 属性 を記録します。 しかし、例えばユーザのパスワードやクレジットカー ... SECRET|PASS|SIGNATURE|HTTP_COOKIE" , flags = re . IGNORECASE ) is_active ( request ) [ソース] get_post_parameters() と get_traceback_frame_variables() のフィルタリングを有効にする場合は True を返します。デフォルトでは DEBUG が False の場合に有効になります ... [ソース] フィルタリングされた POST パラメータの辞書を返します。センシティブな値は cleansed_substitute で置換されます。 get_traceback_frame_variables ( request , tb_frame ) [ソース] 与えられたトレースバックフレームのローカル変数のフィルタリングされた辞書を ...
https://man.mtool.work/django/6.1/howto/error-reporting.html
ページ分割 (Pagination) 10324
ページ分割 (Pagination) Django は、ページ分割 (ページネーション) されたデータを管理するための高レベルと低レベルの方法を提供しています。つまり、"前へ/次へ" リンクを持つ、複数のページに分割されたデータです。 Paginator クラス 内部では、ページ分 ... 2 . has_next () False >>> page2 . has_previous () True >>> page2 . has_other_pages () True >>> page2 . next_page_number () Traceback (most recent call last): ... EmptyPage : That page contains no results >>> page2 . previous_page_number () 1 >>> page2 . s ... first item on this page 3 >>> page2 . end_index () # The 1-based index of the last item on this page 4 >>> p . page ( 0 ) Traceback (most recent call last): ... EmptyPage : That page number is less than 1 >>> p . page ( 3 ) Traceback (most recent call la ...
https://man.mtool.work/django/6.1/topics/pagination.html
Django 1.10.8 リリースノート 9534
Django 1.10.8 リリースノート September 5, 2017 Django 1.10.8 fixes a security issue in 1.10.7. CVE-2017-12794: Possible XSS in traceback section of technical 500 debug page In older versions, HTML autoescaping was disabled in a portion of t ...
https://man.mtool.work/django/6.1/releases/1.10.8.html
Django 1.8 リリースノート 9345
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... re set to None . シグナル Exceptions from the (receiver, exception) tuples returned by Signal.send_robust() now have their traceback attached as a __traceback__ attribute. The environ argument, which contains the WSGI environment structure from the reques ... le: >>> book = Book . objects . create ( 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 ... o" ) >>> book . author >>> Now, an error 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. I ...
https://man.mtool.work/django/6.1/releases/1.8.html
フォーム フィールド 8555
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... f = forms . EmailField () >>> f . clean ( "foo@example.com" ) 'foo@example.com' >>> f . clean ( "invalid email address" ) Traceback (most recent call last): ... ValidationError : ['Enter a valid email address.'] field のコアとなる引数 各 Field クラスのコ ... 発生させます。 >>> from django import forms >>> f = forms . CharField () >>> f . clean ( "foo" ) 'foo' >>> f . clean ( "" ) Traceback (most recent call last): ... ValidationError : ['This field is required.'] >>> f . clean ( None ) Traceback (most recent c ... デフォルトのエラーメッセージです: >>> from django import forms >>> generic = forms . CharField () >>> generic . clean ( "" ) Traceback (most recent call last): ... ValidationError : ['This field is required.'] そしてこれがカスタムエラーメッセージです: >>> n ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
Tasks 8555
Tasks New in Django 6.0. The Task framework provides the contract and plumbing for background work, not the engine that runs it. The Tasks API defines how work is described, queued, and tracked, but leaves actual execution to external infra ... xecuted the Task. Task errors class TaskError Contains information about the error raised during the execution of a Task . traceback The traceback (as a string) from the raised exception when the Task failed. exception_class The exception class raised whe ...
https://man.mtool.work/django/6.1/ref/tasks.html
Django 1.11.5 リリースノート 8366
Django 1.11.5 リリースノート September 5, 2017 Django 1.11.5 fixes a security issue and several bugs in 1.11.4. CVE-2017-12794: Possible XSS in traceback section of technical 500 debug page In older versions, HTML autoescaping was disabled ...
https://man.mtool.work/django/6.1/releases/1.11.5.html
多対一 (many-to-one) 関係 8366
多対一 (many-to-one) 関係 多対一のリレーションシップを定義するには ForeignKey を使います。 この例では、 Reporter は複数の Article オブジェクトと関連付けることができますが、 Article は一つの Reporter オブジェクトしか持つことができません: fro ... >>> Article . objects . create ( ... headline = "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'. ... orter <Reporter: Paul Jones> 間違った型のオブジェクトを追加すると TypeError が発生します: >>> r . article_set . add ( r2 ) Traceback (most recent call last): ... TypeError : 'Article' instance expected, got <Reporter: Paul Jones> >>> r . article_set . all ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_one.html
多対多 (many-to-many) 関係 8161
多対多 (many-to-many) 関係 多対多の関係を定義するには、 ManyToManyField を使用します。 この例では、一つの Article は複数の Publication オブジェクトに掲載することができ、一つの Publication は複数の Article オブジェクトを持ちます: from django ... s you build web apps easily" ) 保存するまでは Publication と関連付けることはできません: >>> a1 . publications . add ( p1 ) Traceback (most recent call last): ... ValueError : "<Article: Django lets you build web apps easily>" needs to have a value for fie ... publications . add ( p3 ) 間違った型のオブジェクトを追加すると TypeError が発生します: >>> a2 . publications . add ( a1 ) Traceback (most recent call last): ... TypeError : 'Publication' instance expected Article に Publication をワンステップで作成・追加 ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_many.html
PREV 1 2 3 4 NEXT