... 対パスを検索します。 例: / $ python manage.py findstatic css/base.css admin/js/core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /home/polls.com/core/static/css/base.css Found 'admin/js/core.js' here: /home/polls.com ... ontrib/admin/media/js/core.js ...\> py manage.py findstatic css\base.css admin\js\core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /home/polls.com/core/static/css/base.css Found 'admin/js/core.js' here: /home/polls.com ... t オプションを使用してください。 / $ python manage.py findstatic css/base.css --first Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css ...\> py manage.py findstatic css\base.css --first Found 'css/base.css' here: /home/spe ... ... 対パスを検索します。 例: / $ python manage.py findstatic css/base.css admin/js/core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /home/polls.com/core/static/css/base.css Found 'admin/js/core.js' here: /home/polls.com ... ontrib/admin/media/js/core.js ...\> py manage.py findstatic css\base.css admin\js\core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /home/polls.com/core/static/css/base.css Found 'admin/js/core.js' here: /home/polls.com ... t オプションを使用してください。 / $ python manage.py findstatic css/base.css --first Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css ...\> py manage.py findstatic css\base.css --first Found 'css/base.css' here: /home/spe ... ... {message} " , "style" : "{" , }, "simple" : { "format" : " {levelname} {message} " , "style" : "{" , }, }, "filters" : { "special" : { "()" : "project.logging.SpecialFilter" , "foo" : "bar" , }, "require_debug_true" : { "()" : "django.utils.log.Require ... ter" : "simple" , }, "mail_admins" : { "level" : "ERROR" , "class" : "django.utils.log.AdminEmailHandler" , "filters" : [ "special" ], }, }, "loggers" : { "django" : { "handlers" : [ "console" ], "propagate" : True , }, "django.request" : { "handlers" : ... opagate" : False , }, "myproject.custom" : { "handlers" : [ "console" , "mail_admins" ], "level" : "INFO" , "filters" : [ "special" ], }, }, } このロギング設定は、以下のことを行います: 設定が「dictConfig バージョン 1」形式であることを明示します。 現在、 ... ... {message} " , "style" : "{" , }, "simple" : { "format" : " {levelname} {message} " , "style" : "{" , }, }, "filters" : { "special" : { "()" : "project.logging.SpecialFilter" , "foo" : "bar" , }, "require_debug_true" : { "()" : "django.utils.log.Require ... ter" : "simple" , }, "mail_admins" : { "level" : "ERROR" , "class" : "django.utils.log.AdminEmailHandler" , "filters" : [ "special" ], }, }, "loggers" : { "django" : { "handlers" : [ "console" ], "propagate" : True , }, "django.request" : { "handlers" : ... opagate" : False , }, "myproject.custom" : { "handlers" : [ "console" , "mail_admins" ], "level" : "INFO" , "filters" : [ "special" ], }, }, } このロギング設定は、以下のことを行います: 設定が「dictConfig バージョン 1」形式であることを明示します。 現在、 ... ... 用します。 class CommentForm ( forms . Form ): name = forms . CharField ( widget = forms . TextInput ( attrs = { "class" : "special" })) url = forms . URLField () comment = forms . CharField ( widget = forms . TextInput ( attrs = { "size" : "40" })) フォ ... forms . CharField () url = forms . URLField () comment = forms . CharField () name . widget . attrs . update ({ "class" : "special" }) comment . widget . attrs . update ( size = "40" ) あるいは、フォームに直接フィールドが宣言されていない場合(モデルフォ ... , ** kwargs ): super () . __init__ ( * args , ** kwargs ) self . fields [ "name" ] . widget . attrs . update ({ "class" : "special" }) self . fields [ "comment" ] . widget . attrs . update ( size = "40" ) Django はこれで、レンダリングされたアウトプットに ... ... content types. Therefore, Django would remove the header if the request was made by Internet Explorer. To remedy this, the special behavior for these older Internet Explorer versions has been removed, and the Vary header is no longer stripped from the r ... ... content types. Therefore, Django would remove the header if the request was made by Internet Explorer. To remedy this, the special behavior for these older Internet Explorer versions has been removed, and the Vary header is no longer stripped from the r ... ... RLconf のサンプルです。 from django.urls import path from . import views urlpatterns = [ path ( "articles/2003/" , views . special_case_2003 ), path ( "articles/<int:year>/" , views . year_archive ), path ( "articles/<int:year>/<int:month>/" , views . m ... パターンが最初に通るからです。ソートを利用して、このような特殊なケースを挿入するのは自由です。ここでは、 Django は関数 views.special_case_2003(request) を呼び出します。 各パターンはURLの末尾がスラッシュであることを要求するので、 /articles/2003 はこれらのパ ... iews register_converter ( converters . FourDigitYearConverter , "yyyy" ) urlpatterns = [ path ( "articles/2003/" , views . special_case_2003 ), path ( "articles/<yyyy:year>/" , views . year_archive ), ... , ] 正規表現を使う ¶ パスとコンバータ構文だけでは ... ... 用します。 class CommentForm ( forms . Form ): name = forms . CharField ( widget = forms . TextInput ( attrs = { "class" : "special" })) url = forms . URLField () comment = forms . CharField ( widget = forms . TextInput ( attrs = { "size" : "40" })) フォ ... forms . CharField () url = forms . URLField () comment = forms . CharField () name . widget . attrs . update ({ "class" : "special" }) comment . widget . attrs . update ( size = "40" ) あるいは、フォームに直接フィールドが宣言されていない場合(モデルフォ ... , ** kwargs ): super () . __init__ ( * args , ** kwargs ) self . fields [ "name" ] . widget . attrs . update ({ "class" : "special" }) self . fields [ "comment" ] . widget . attrs . update ( size = "40" ) Django はこれで、レンダリングされたアウトプットに ... ... content types. Therefore, Django would remove the header if the request was made by Internet Explorer. To remedy this, the special behavior for these older Internet Explorer versions has been removed, and the Vary header is no longer stripped from the r ... 2026年10月08日