per page, with , order by , clip by
Results of 1 - 10 of about 14 for assertRedirects (0.405 sec.)
Django 1.9.6 リリースノート — Django 6.1 ドキュメント 12971
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.9.6 リリースノート ¶ May 2, 2016 Django 1.9.6 では、1.9.5 にあったいくつかのバグを修正しました。 バグ修正 ¶ Added support for relative path ... redirects to the test client and to SimpleTestCase.assertRedirects() because Django 1.9 no longer converts redirects to absolute URIs ( #26428 ). Fixed TimeField microseconds round-tripping ... gression バグ 修正 redirects MySQL SQLite values template リリースノート Added support relative path client SimpleTestCase assertRedirects because longer converts absolute URIs TimeField microseconds round クイック検索 Last update: 2026年10月09日 « previous | u ...
https://man.mtool.work/django/6.1/releases/1.9.6.html
Django 1.9.6 リリースノート — Django 6.1 ドキュメント 12446
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.9.6 リリースノート ¶ May 2, 2016 Django 1.9.6 では、1.9.5 にあったいくつかのバグを修正しました。 バグ修正 ¶ Added support for relative path ... redirects to the test client and to SimpleTestCase.assertRedirects() because Django 1.9 no longer converts redirects to absolute URIs ( #26428 ). Fixed TimeField microseconds round-tripping ... グ 修正 redirects MySQL SQLite values template リリースノート いくつ Added support relative path test client SimpleTestCase assertRedirects 関連するページ Django 3.1.4 リリースノート Django 1.11.8 リリースノート Django 5.1.7 リリースノート Django 4.0.5 リリースノ ...
https://man.mtool.work/django/6.1/releases/1.9.6.html
テストツール — Django 6.1 ドキュメント 9242
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... ce or absence of HTML fragments assertTemplateUsed() Template usage in a response assertURLEqual() That two URLs are equal assertRedirects() That an HTTP redirect occurred assertHTMLEqual() HTML fragment equality assertInHTML() HTML fragment containment assertX ... se ): def test_login ( self ): # First check for the default behavior response = self . client . get ( "/sekrit/" ) self . assertRedirects ( response , "/accounts/login/?next=/sekrit/" ) # Then override the LOGIN_URL setting with self . settings ( LOGIN_URL = " ... /other/login/" ): response = self . client . get ( "/sekrit/" ) self . assertRedirects ( response , "/other/login/?next=/sekrit/" ) この例では、 with ブロック内のコードに対して、 LOGIN_URL 設定をオーバーライド ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
テストツール — Django 6.1 ドキュメント 9242
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... ce or absence of HTML fragments assertTemplateUsed() Template usage in a response assertURLEqual() That two URLs are equal assertRedirects() That an HTTP redirect occurred assertHTMLEqual() HTML fragment equality assertInHTML() HTML fragment containment assertX ... se ): def test_login ( self ): # First check for the default behavior response = self . client . get ( "/sekrit/" ) self . assertRedirects ( response , "/accounts/login/?next=/sekrit/" ) # Then override the LOGIN_URL setting with self . settings ( LOGIN_URL = " ... /other/login/" ): response = self . client . get ( "/sekrit/" ) self . assertRedirects ( response , "/other/login/?next=/sekrit/" ) この例では、 with ブロック内のコードに対して、 LOGIN_URL 設定をオーバーライド ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 8437
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... unner , which facilitate overriding the way tests are collected and run. The fetch_redirect_response argument was added to assertRedirects() . Since the test client can't fetch externals URLs, this allows you to use assertRedirects with redirects that aren't pa ... rt of your Django app. Correct handling of scheme when making comparisons in assertRedirects() . The secure argument was added to all the request methods of Client . If True , the request will be made through HTTPS. ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.9 リリースノート — Django 6.1 ドキュメント 8437
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.9 リリースノート ¶ December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグ ... ecognizing the actual practice of user agents, almost all of which support them. Consequently, the expected URLs passed to assertRedirects should generally no longer include the scheme and domain part of the URLs. For example, self.assertRedirects(response, 'ht ... tp://testserver/some-url/') should be replaced by self.assertRedirects(response, '/some-url/') (unless the redirection specifically contained an absolute URL). In the rare case that you need th ...
https://man.mtool.work/django/6.1/releases/1.9.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 8437
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... unner , which facilitate overriding the way tests are collected and run. The fetch_redirect_response argument was added to assertRedirects() . Since the test client can't fetch externals URLs, this allows you to use assertRedirects with redirects that aren't pa ... rt of your Django app. Correct handling of scheme when making comparisons in assertRedirects() . The secure argument was added to all the request methods of Client . If True , the request will be made through HTTPS. ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.9 リリースノート — Django 6.1 ドキュメント 8437
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.9 リリースノート ¶ December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグ ... ecognizing the actual practice of user agents, almost all of which support them. Consequently, the expected URLs passed to assertRedirects should generally no longer include the scheme and domain part of the URLs. For example, self.assertRedirects(response, 'ht ... tp://testserver/some-url/') should be replaced by self.assertRedirects(response, '/some-url/') (unless the redirection specifically contained an absolute URL). In the rare case that you need th ...
https://man.mtool.work/django/6.1/releases/1.9.html
Django 2.2 リリースノート — Django 6.1 ドキュメント 7912
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 2.2 リリースノート ¶ April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレー ... スト ¶ The new SimpleTestCase.assertURLEqual() assertion checks for a given URL, ignoring the ordering of the query string. assertRedirects() uses the new assertion. The test Client now supports automatic JSON serialization of list and tuple data when content_ty ...
https://man.mtool.work/django/6.1/releases/2.2.html
Django 2.2 リリースノート — Django 6.1 ドキュメント 7912
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 2.2 リリースノート ¶ April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレー ... スト ¶ The new SimpleTestCase.assertURLEqual() assertion checks for a given URL, ignoring the ordering of the query string. assertRedirects() uses the new assertion. The test Client now supports automatic JSON serialization of list and tuple data when content_ty ...
https://man.mtool.work/django/6.1/releases/2.2.html
PREV 1 2 NEXT