per page, with , order by , clip by
Results of 1 - 10 of about 122 for urls (0.003 sec.)
URL ディスパッチャ 14355
URL ディスパッチャ すっきりした、簡潔で明解な URL スキームは、高品質な Web アプリケーションでは重要な要素です。 Django では、フレームワークの制限なしに、望み通りの URL を設計できます。 URL はすっきりした扱いやすいものにすべきであるという主張 ... わりに使います。 Django はその Python モジュールをロードして、 urlpatterns という名前の変数を探します。この変数の値は django.urls.path() または django.urls.re_path() インスタンスの sequence でなければなりません。 Django は URL パターンを順に調べて、 pa ... 置引数として提供されます。 指定された URL パス表現でマッチした名前付き部分からはキーワード引数が作られます。ただし、 django.urls.path() や django.urls.re_path() に kwargs オプション引数が指定されていた場合は、その中の引数で上書きされます。 もし、 URL ... ーハンドリングビューを呼び出します。下の Error handling を見てください。 カスタマイズ例 URLconf のサンプルです。 from django.urls import path from . import views urlpatterns = [ path ( "articles/2003/" , views . special_case_2003 ), path ( "articles/<i ...
https://man.mtool.work/django/6.1/topics/http/urls.html
はじめての Django アプリ作成、その 1 10052
はじめての Django アプリ作成、その 1 さあ、例を交えながら学んでゆきましょう。 このチュートリアルでは、簡単な投票 (poll) アプリケーションの作成に取り組ん でもらいます。 Poll アプリケーションは 2 つの部分からなります: ユーザが投票したり結果を ... ようにしましょう。 startproject が何を作成したかをみてみましょう: djangotutorial/ manage.py mysite/ __init__.py settings.py urls.py asgi.py wsgi.py ファイルはそれぞれ以下のような役割を持っています: manage.py : Django プロジェクトに対する様々な操作を行 ... このディレクトリの名前は、内部のモジュールやパッケージをインポートするために使用するPythonパッケージ名になります(例: mysite.urls )。 mysite/__init__.py : このディレクトリが Python パッケージであることを Python に知らせるための空のファイルです。Python ... ttings.py : Settings/configuration for this Django project. Djangoの設定 will tell you all about how settings work. mysite/urls.py : Django プロジェクトの URL 宣言、いうなれば Django サイトにおける「目次」に相当します。詳しくは URL ディスパッチャ を参 ...
https://man.mtool.work/django/6.1/intro/tutorial01.html
ジェネリック日付ビュー 9038
ジェネリック日付ビュー 日付ベースのジェネリックビュー ( django.views.generic.dates 内で提供されています) は、日付ベースのデータのために、ドリルダウンページを描画するためのビューです。 注釈 このページの例のいくつかは、 myapp/models.py 内で下 ... 記の通り Article モデルが定義されていると仮定します: from django.db import models from django.urls import reverse class Article ( models . Model ): title = models . CharField ( max_length = 200 ) pub_date = models . DateF ... ルトですが、 date_list_period 属性を用いた月や日に変更できます。これは、すべてのサブクラスのビューに適用されます。 例 myapp/urls.py : from django.urls import path from django.views.generic.dates import ArchiveIndexView from myapp.models import Article ... View ): queryset = Article . objects . all () date_field = "pub_date" make_object_list = True allow_future = True 例 myapp/urls.py : from django.urls import path from myapp.views import ArticleYearArchiveView urlpatterns = [ path ( "<int:year>/" , Ar ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-date-based.html
Django 1.4.20 リリースノート 8890
Django 1.4.20 リリースノート March 18, 2015 Django 1.4.20 fixes one security issue in 1.4.19. Mitigated possible XSS attack via user-supplied redirect URLs Django relies on user input in some cases (e.g. django.contrib.auth.views.login() an ... he user to an "on success" URL. The security checks for these redirects (namely django.utils.http.is_safe_url() ) accepted URLs with leading control characters and so considered URLs like \x08javascript:... safe. This issue doesn't affect Django curr ... put this URL into the Location response header and browsers seem to ignore JavaScript there. Browsers we tested also treat URLs prefixed with control characters such as %08//example.com as relative paths so redirection to an unsafe target isn't a pro ...
https://man.mtool.work/django/6.1/releases/1.4.20.html
Django 1.4 リリースノート 8346
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... the project are imported or referenced using the project name prefix (e.g. myproject.settings , ROOT_URLCONF = "myproject.urls" , etc.), the new manage.py will need to be moved one directory up, so it is outside the project package rather than adjac ... ent to settings.py and urls.py . For instance, with the following layout: manage.py mysite/ __init__.py settings.py urls.py myapp/ __init__.py models. ... py You could import mysite.settings , mysite.urls , and mysite.myapp , but not settings , urls , or myapp as top-level modules. Anything imported as a top-level module can ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 1.4.13 リリースノート 8185
Django 1.4.13 リリースノート May 14, 2014 Django 1.4.13 fixes two security issues in 1.4.12. Caches may incorrectly be allowed to store and serve private data In certain situations, Django may allow caches to store private data related to a ... sts with a Content-Disposition header have also been removed as they were found to have similar issues. Malformed redirect URLs from user input not correctly validated The validation for redirects did not correctly validate some malformed URLs, which ... he security checks for these redirects (namely django.utils.http.is_safe_url() ) did not correctly validate some malformed URLs, such as http:\\\\\\djangoproject.com , which are accepted by some browsers with more liberal URL parsing. To remedy this, ... the validation in is_safe_url() has been tightened to be able to handle and correctly validate these malformed URLs. ...
https://man.mtool.work/django/6.1/releases/1.4.13.html
Django 1.5.8 リリースノート 8185
Django 1.5.8 リリースノート May 14, 2014 Django 1.5.8 fixes two security issues in 1.5.8. Caches may incorrectly be allowed to store and serve private data In certain situations, Django may allow caches to store private data related to a pa ... sts with a Content-Disposition header have also been removed as they were found to have similar issues. Malformed redirect URLs from user input not correctly validated The validation for redirects did not correctly validate some malformed URLs, which ... he security checks for these redirects (namely django.utils.http.is_safe_url() ) did not correctly validate some malformed URLs, such as http:\\\\\\djangoproject.com , which are accepted by some browsers with more liberal URL parsing. To remedy this, ... the validation in is_safe_url() has been tightened to be able to handle and correctly validate these malformed URLs. ...
https://man.mtool.work/django/6.1/releases/1.5.8.html
Django 1.6.11 リリースノート 8185
Django 1.6.11 リリースノート March 18, 2015 Django 1.6.11 fixes two security issues in 1.6.10. Denial-of-service possibility with strip_tags() Last year strip_tags() was changed to work iteratively. The problem is that the size of the input ... ags() call without escaping it first, for example with escape() . Mitigated possible XSS attack via user-supplied redirect URLs Django relies on user input in some cases (e.g. django.contrib.auth.views.login() and i18n ) to redirect the user to an "o ... n success" URL. The security checks for these redirects (namely django.utils.http.is_safe_url() ) accepted URLs with leading control characters and so considered URLs like \x08javascript:... safe. This issue doesn't affect Django curr ... put this URL into the Location response header and browsers seem to ignore JavaScript there. Browsers we tested also treat URLs prefixed with control characters such as %08//example.com as relative paths so redirection to an unsafe target isn't a pro ...
https://man.mtool.work/django/6.1/releases/1.6.11.html
Django 1.7.7 リリースノート 7950
Django 1.7.7 リリースノート March 18, 2015 Django 1.7.7 fixes several bugs and security issues in 1.7.6. Denial-of-service possibility with strip_tags() Last year strip_tags() was changed to work iteratively. The problem is that the size of ... ags() call without escaping it first, for example with escape() . Mitigated possible XSS attack via user-supplied redirect URLs Django relies on user input in some cases (e.g. django.contrib.auth.views.login() and i18n ) to redirect the user to an "o ... n success" URL. The security checks for these redirects (namely django.utils.http.is_safe_url() ) accepted URLs with leading control characters and so considered URLs like \x08javascript:... safe. This issue doesn't affect Django curr ... put this URL into the Location response header and browsers seem to ignore JavaScript there. Browsers we tested also treat URLs prefixed with control characters such as %08//example.com as relative paths so redirection to an unsafe target isn't a pro ...
https://man.mtool.work/django/6.1/releases/1.7.7.html
URLconf で使用するための django.urls 関数 7876
URLconf で使用するための django.urls 関数 path() path ( route , view , kwargs = None , name = None ) urlpatterns に含める要素を返します。例えば: from django.urls import include , path urlpatterns = [ path ( "index/" , views . index , name = ... ( "articles/<slug:title>/<int:section>/" , views . section , name = "article-section" ), path ( "blog/" , include ( "blog.urls" )), ... , ] route The route argument should be a string or gettext_lazy() (see URL パターンを翻訳する ) that contains a U ... します。 view view 引数は、ビュー関数、またはクラスベースビューの場合は as_view() の結果です。また、 view 引数には、 django.urls.include() を指定することもできます。 Djangoが一致するパターンを見つけると、指定されたビュー関数を呼び出し、最初の引数として ... 。 re_path() re_path ( route , view , kwargs = None , name = None ) urlpatterns に含める要素を返します。例えば: from django.urls import include , re_path urlpatterns = [ re_path ( r "^index/$" , views . index , name = "index" ), re_path ( r "^bio/(?P< ...
https://man.mtool.work/django/6.1/ref/urls.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT