per page, with , order by , clip by
Results of 1 - 10 of about 42 for absolute (0.003 sec.)
モデルインスタンスリファレンス 11938
モデルインスタンスリファレンス このドキュメントでは、 Model API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおいた方がよいでしょう。 このリファレン ... lues before and after the instance is saved), but changing the __hash__() value of an instance is forbidden in Python. get_absolute_url() Model. get_absolute_url () オブジェクトに対する正式な URL を計算する方法は、 get_absolute_url() で定義します。呼び出 ... に対して、このメソッドは文字列を返します。この文字列は HTTP を通じてオブジェクトを参照するために使えるものです。 例: def get_absolute_url ( self ): return "/people/ %i /" % self . id While this code is correct and simple, it may not be the most portable wa ... y to write this kind of method. The reverse() function is usually the best approach. 例: def get_absolute_url ( self ): from django.urls import reverse return reverse ( "people-detail" , kwargs = { "pk" : self . pk }) Django が ...
https://man.mtool.work/django/6.1/ref/models/instances.html
Django 1.7.1 リリースノート 11396
Django 1.7.1 リリースノート October 22, 2014 Django 1.7.1 fixes several bugs in 1.7. バグ修正 Allowed related many-to-many fields to be referenced in the admin ( #23604 ). Added a more helpful error message if you try to migrate an app with ... 18 ). Fixed a typo in an inlineformset_factory() error message that caused a crash ( #23451 ). Restored the ability to use ABSOLUTE_URL_OVERRIDES with the 'auth.User' model ( #11775 ). As a side effect, the setting now adds a get_absolute_url() method to ... any model that appears in ABSOLUTE_URL_OVERRIDES but doesn't define get_absolute_url() . Avoided masking some ImportError exceptions during application loadi ...
https://man.mtool.work/django/6.1/releases/1.7.1.html
Django 1.11.22 リリースノート 10683
Django 1.11.22 リリースノート July 1, 2019 Django 1.11.22 fixes a security issue in 1.11.21. CVE-2019-12781: Incorrect HTTP detection with reverse-proxy connecting via HTTPS When deployed behind a reverse-proxy connecting to Django via HTTP ... ncorrectly detect client requests made via HTTP as using HTTPS. This entails incorrect results for is_secure() , and build_absolute_uri() , and that HTTP requests would not be redirected to HTTPS in accordance with SECURE_SSL_REDIRECT . HttpRequest.schem ... go via HTTPS, be sure to verify that your application correctly handles code paths relying on scheme , is_secure() , build_absolute_uri() , and SECURE_SSL_REDIRECT . ...
https://man.mtool.work/django/6.1/releases/1.11.22.html
Django 2.1.10 リリースノート 10683
Django 2.1.10 リリースノート July 1, 2019 Django 2.1.10 fixes a security issue in 2.1.9. CVE-2019-12781: Incorrect HTTP detection with reverse-proxy connecting via HTTPS When deployed behind a reverse-proxy connecting to Django via HTTPS, d ... ncorrectly detect client requests made via HTTP as using HTTPS. This entails incorrect results for is_secure() , and build_absolute_uri() , and that HTTP requests would not be redirected to HTTPS in accordance with SECURE_SSL_REDIRECT . HttpRequest.schem ... go via HTTPS, be sure to verify that your application correctly handles code paths relying on scheme , is_secure() , build_absolute_uri() , and SECURE_SSL_REDIRECT . ...
https://man.mtool.work/django/6.1/releases/2.1.10.html
Django 2.2.3 リリースノート 10312
Django 2.2.3 リリースノート July 1, 2019 Django 2.2.3 fixes a security issue and several bugs in 2.2.2. Also, the latest string translations from Transifex are incorporated. CVE-2019-12781: Incorrect HTTP detection with reverse-proxy connec ... ncorrectly detect client requests made via HTTP as using HTTPS. This entails incorrect results for is_secure() , and build_absolute_uri() , and that HTTP requests would not be redirected to HTTPS in accordance with SECURE_SSL_REDIRECT . HttpRequest.schem ... go via HTTPS, be sure to verify that your application correctly handles code paths relying on scheme , is_secure() , build_absolute_uri() , and SECURE_SSL_REDIRECT . バグ修正 Fixed a regression in Django 2.2 where Avg , StdDev , and Variance crash with f ...
https://man.mtool.work/django/6.1/releases/2.2.3.html
Django のショートカット関数 9956
Django のショートカット関数 django.shortcuts パッケージは、MVC の複数のレベルにまたがるヘルパー関数とクラスを集めたものです。言い換えれば、これらの関数やクラスは、便宜上、控えめな結合を取り入れます。 render() render ( request , template_nam ... 渡された引数に対して、 適切な URLへの HttpResponseRedirect を返します。 引数には以下が含まれます: A model: the model's get_absolute_url() function will be called. ビュー名(引数を渡せます): reverse() を使って名前を逆解決します。 絶対URLまたは相対URL。こ ... 6.1: max_length was added. 例 redirect() 関数の使い方はいくつかあります。 オブジェクトを渡すことで、そのオブジェクトの get_absolute_url() メソッドが呼び出され、リダイレクト URL を返します: from django.shortcuts import redirect def my_view ( request ): .. ... y resolving and normalizing the given to argument into a concrete URL. The parameter to may be: An object implementing get_absolute_url() , in which case the method will be called and its result returned. A view name, view function, or view class, possib ...
https://man.mtool.work/django/6.1/topics/http/shortcuts.html
Django 2.2.18 リリースノート 8872
Django 2.2.18 リリースノート February 1, 2021 Django 2.2.18 fixes a security issue with severity "low" in 2.2.17. CVE-2021-3281: Potential directory-traversal via archive.extract() The django.utils.archive.extract() function, used by starta ... pp --template and startproject --template , allowed directory-traversal via an archive with absolute paths or relative paths with dot segments. ...
https://man.mtool.work/django/6.1/releases/2.2.18.html
Django 3.0.12 リリースノート 8872
Django 3.0.12 リリースノート February 1, 2021 Django 3.0.12 fixes a security issue with severity "low" in 3.0.11. CVE-2021-3281: Potential directory-traversal via archive.extract() The django.utils.archive.extract() function, used by starta ... pp --template and startproject --template , allowed directory-traversal via an archive with absolute paths or relative paths with dot segments. ...
https://man.mtool.work/django/6.1/releases/3.0.12.html
Django 3.1.6 リリースノート 8686
Django 3.1.6 リリースノート February 1, 2021 Django 3.1.6 fixes a security issue with severity "low" and a bug in 3.1.5. CVE-2021-3281: Potential directory-traversal via archive.extract() The django.utils.archive.extract() function, used by ... startapp --template and startproject --template , allowed directory-traversal via an archive with absolute paths or relative paths with dot segments. バグ修正 Fixed an admin layout issue in Django 3.1 where changelist filter cont ...
https://man.mtool.work/django/6.1/releases/3.1.6.html
配信 (syndication) フィード フレームワーク 8330
配信 (syndication) フィード フレームワーク Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワークが付属しています。 任意の配信フィードを作成するには、短い Python クラスを書くだけで済みます。 ... . title def item_description ( self , item ): return item . description # item_link is only needed if NewsItem has no get_absolute_url method. def item_link ( self , item ): return reverse ( "news-item" , args = [ item . pk ]) このフィードにURLを接続する ... title and description, it is passed a single parameter, item . If that method doesn't exist, Django tries executing a get_absolute_url() method on that object. Both get_absolute_url() and item_link() should return the item's URL as a normal Python strin ... g. As with get_absolute_url() , the result of item_link() will be included directly in the URL, so you are responsible for doing all necessary URL ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
PREV 1 2 3 4 5 NEXT