per page, with , order by , clip by
Results of 1 - 8 of about 8 for AssertionError (0.004 sec.)
Django 1.8.5 リリースノート 13320
Django 1.8.5 リリースノート October 3, 2015 Django 1.8.5 fixes several bugs in 1.8.4. バグ修正 Made the development server's autoreload more robust ( #24704 ). Fixed AssertionError in some delete queries with a model containing a field that ... is both a foreign and primary key ( #24951 ). Fixed AssertionError in some complex queries ( #24525 ). Fixed a migrations crash with GenericForeignKey ( #25040 ). Made translation.override( ...
https://man.mtool.work/django/6.1/releases/1.8.5.html
Django 1.11.5 リリースノート 9561
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 ... tial data in model forms from being affected by subsequent model changes ( #28543 ). Fixed non-deterministic results or an AssertionError crash in some queries with multiple joins ( #26522 ). Fixed a regression in contrib.auth 's login() and logout() views whe ...
https://man.mtool.work/django/6.1/releases/1.11.5.html
Django 4.0 リリースノート 9561
Django 4.0 リリースノート 2021年12月7日 Django 4.0 へようこそ! このリリースノートでは、 バージョン 4.0 の新機能 と、Django 3.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... .urls property, or AdminSite.get_urls() method. Unsupported operations on a sliced queryset now raise TypeError instead of AssertionError . The undocumented django.test.runner.reorder_suite() function is renamed to reorder_tests() . It now accepts an iterable ... , and returns an iterator of tests. Calling FileSystemStorage.delete() with an empty name now raises ValueError instead of AssertionError . Calling EmailMultiAlternatives.attach_alternative() or EmailMessage.attach() with an invalid content or mimetype argumen ... ts now raise ValueError instead of AssertionError . assertHTMLEqual() no longer considers a non-boolean attribute without a value equal to an attribute with the same name a ...
https://man.mtool.work/django/6.1/releases/4.0.html
Porting your apps from Django 0.96 to 1.0 8711
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... $" Smaller model changes Different exception from get() Managers now return a MultipleObjectsReturned exception instead of AssertionError : Old (0.96): try : Model . objects . get ( ... ) except AssertionError : handle_the_error () New (1.0): try : Model . obj ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
テストツール 8422
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... (例を参照)。 同じ文字を参照するテキスト、文字参照、およびエンティティ参照は等価です。 以下の例は有効なテストであり、どれも AssertionError を引き起こしません。 self . assertHTMLEqual ( "<p>Hello <b>&#x27;world&#x27;!</p>" , """<p> Hello <b>&#39;world&#39;! </b> ... ccept_terms" type="checkbox" checked>' , ) html1 と html2 はHTMLを含んでいなければなりません。どちらかが解析できない場合は AssertionError が発生します。 エラー時の出力は msg 引数でカスタマイズできます。 SimpleTestCase. assertHTMLNotEqual ( html1 , html2 , msg ... 細は assertHTMLEqual() を参照してください。 html1 と html2 はHTMLを含んでいなければなりません。どちらかが解析できない場合は AssertionError が発生します。 エラー時の出力は msg 引数でカスタマイズできます。 SimpleTestCase. assertXMLEqual ( xml1 , xml2 , msg = None ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Python プログラマーのための Django テンプレート言語 7844
Python プログラマーのための Django テンプレート言語 この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点から説明します。構文に関するリファレンスを探しているなら、 Django テンプレート言語 を参照してくだ ... >>> t = Template ( "My name is {{ person.first_name }}." ) >>> class PersonClass3 : ... def first_name ( self ): ... raise AssertionError ( "foo" ) ... >>> p = PersonClass3 () >>> t . render ( Context ({ "person" : p })) Traceback (most recent call last): ... ... AssertionError : foo >>> class SilentAssertionError ( Exception ): ... silent_variable_failure = True ... >>> class PersonClass4 : ... def first_name ( self ): ... raise Sile ... ntAssertionError ... >>> p = PersonClass4 () >>> t . render ( Context ({ "person" : p })) "My name is ." django.core.exceptions.ObjectDoesN ...
https://man.mtool.work/django/6.1/ref/templates/api.html
テストを書いて実行する 7555
テストを書いて実行する 参考 テストチュートリアル 、 テストツールリファレンス 、 テストに関する応用的なトピック も参照 ドキュメントは2つの大きなセクションに分けられます。前半のパートでは、Django でのテストの書き方を説明します。後半では、テス ... line 16 , in test_was_published_recently_with_future_poll self.assertIs ( future_poll.was_published_recently () , False ) AssertionError: True is not False ---------------------------------------------------------------------- Ran 1 test in 0 .003s FAILED ( f ...
https://man.mtool.work/django/6.1/topics/testing/overview.html
はじめての Django アプリ作成、その 5 7265
はじめての Django アプリ作成、その 5 このチュートリアルは チュートリアル 4 の続きです。Web 投票アプリケーションが完成したので、今度は自動テストを作ってみましょう。 困ったときは: このチュートリアルの実行に問題がある場合は、FAQ の Getting Hel ... , in test_was_published_recently_with_future_question self.assertIs ( future_question.was_published_recently () , False ) AssertionError: True is not False ---------------------------------------------------------------------- Ran 1 test in 0 .001s FAILED ( f ...
https://man.mtool.work/django/6.1/intro/tutorial05.html
PREV 1 NEXT