... ] >>> page2 . 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 ... ased 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 last): ... EmptyPage : That page contains no results 注釈 Pa ... > {% if page_obj.has_previous %} < a href = "?page=1" > « first </ a > < a href = "?page= {{ page_obj.previous_page_number }} " > previous </ a > {% endif %} < span class = "current" > Page {{ page_obj.number }} of {{ page_obj.paginator.num_page ... ... s ¶ Optional. Use this when you don't want to have a last page with very few items. If the last page would normally have a number of items less than or equal to orphans , then those items will be added to the previous page (which becomes the last page) ... nator . page ( 5 ) Traceback (most recent call last): ... EmptyPage : Page does not exist メソッド ¶ Paginator. get_page ( number ) [ソース] ¶ 1から始まるインデックスをもつ Page オブジェクトを返します。このオブジェクトは、範囲外のページ数や無効なページ ... .., allow_empty_first_page=False) を指定し、 object_list が空の場合にのみ EmptyPage 例外を発生させます。 Paginator. page ( number ) [ソース] ¶ 1から始まるインデックスを持つ Page オブジェクトを返します。数値 number が int() を呼び出して整数に変換できない ... ... s ¶ Optional. Use this when you don't want to have a last page with very few items. If the last page would normally have a number of items less than or equal to orphans , then those items will be added to the previous page (which becomes the last page) ... nator . page ( 5 ) Traceback (most recent call last): ... EmptyPage : Page does not exist メソッド ¶ Paginator. get_page ( number ) [ソース] ¶ 1から始まるインデックスをもつ Page オブジェクトを返します。このオブジェクトは、範囲外のページ数や無効なページ ... .., allow_empty_first_page=False) を指定し、 object_list が空の場合にのみ EmptyPage 例外を発生させます。 Paginator. page ( number ) [ソース] ¶ 1から始まるインデックスを持つ Page オブジェクトを返します。数値 number が int() を呼び出して整数に変換できない ... ... ] >>> page2 . 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 ... ased 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 last): ... EmptyPage : That page contains no results 注釈 Pa ... > {% if page_obj.has_previous %} < a href = "?page=1" > « first </ a > < a href = "?page= {{ page_obj.previous_page_number }} " > previous </ a > {% endif %} < span class = "current" > Page {{ page_obj.number }} of {{ page_obj.paginator.num_page ... ... through timing difference on password hasher work factor upgrade ¶ In each major version of Django since 1.6, the default number of iterations for the PBKDF2PasswordHasher and its subclasses has increased. This improves the security of the password as ... eases, however, it also creates a timing difference between a login request for a user with a password encoded in an older number of iterations and login request for a nonexistent user (which runs the default hasher's default number of iterations since ... the default work factor of the hasher. This method is implemented for PBKDF2PasswordHasher and BCryptPasswordHasher . The number of rounds for the latter hasher hasn't changed since Django 1.4, but some projects may subclass it and increase the work f ... ... through timing difference on password hasher work factor upgrade ¶ In each major version of Django since 1.6, the default number of iterations for the PBKDF2PasswordHasher and its subclasses has increased. This improves the security of the password as ... eases, however, it also creates a timing difference between a login request for a user with a password encoded in an older number of iterations and login request for a nonexistent user (which runs the default hasher's default number of iterations since ... the default work factor of the hasher. This method is implemented for PBKDF2PasswordHasher and BCryptPasswordHasher . The number of rounds for the latter hasher hasn't changed since Django 1.4, but some projects may subclass it and increase the work f ... ... formance of the Django 1.1 codebase. Django 1.1.2 maintains backwards compatibility with Django 1.1.0, but contain a number of fixes and other improvements. Django 1.1.2 is a recommended upgrade for any development or deployment currently using o ... s code ¶ The exit status code of the test runners ( tests/runtests.py and python manage.py test ) no longer represents the number of failed tests, since a failure of 256 or more tests resulted in a wrong exit status code. The exit status code for the t ... est runner is now 0 for success (no failing tests) and 1 for any number of test failures. If needed, the number of test failures can be found at the end of the test runner's output. Cookie encod ... ... formance of the Django 1.1 codebase. Django 1.1.2 maintains backwards compatibility with Django 1.1.0, but contain a number of fixes and other improvements. Django 1.1.2 is a recommended upgrade for any development or deployment currently using o ... s code ¶ The exit status code of the test runners ( tests/runtests.py and python manage.py test ) no longer represents the number of failed tests, since a failure of 256 or more tests resulted in a wrong exit status code. The exit status code for the t ... est runner is now 0 for success (no failing tests) and 1 for any number of test failures. If needed, the number of test failures can be found at the end of the test runner's output. Cookie encod ... ... through timing difference on password hasher work factor upgrade ¶ In each major version of Django since 1.6, the default number of iterations for the PBKDF2PasswordHasher and its subclasses has increased. This improves the security of the password as ... eases, however, it also creates a timing difference between a login request for a user with a password encoded in an older number of iterations and login request for a nonexistent user (which runs the default hasher's default number of iterations since ... the default work factor of the hasher. This method is implemented for PBKDF2PasswordHasher and BCryptPasswordHasher . The number of rounds for the latter hasher hasn't changed since Django 1.4, but some projects may subclass it and increase the work f ... ... through timing difference on password hasher work factor upgrade ¶ In each major version of Django since 1.6, the default number of iterations for the PBKDF2PasswordHasher and its subclasses has increased. This improves the security of the password as ... eases, however, it also creates a timing difference between a login request for a user with a password encoded in an older number of iterations and login request for a nonexistent user (which runs the default hasher's default number of iterations since ... the default work factor of the hasher. This method is implemented for PBKDF2PasswordHasher and BCryptPasswordHasher . The number of rounds for the latter hasher hasn't changed since Django 1.4, but some projects may subclass it and increase the work f ... 2026年10月08日