検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 93 for errors (0.019 sec.)
システムチェックフレームワーク — Django 4.0.6 ドキュメント 13325
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ver, trigger them explicitly using check . Serious errors will prevent Django commands (such as runserver ) ... () def example_check ( app_configs , ** kwargs ): errors = [] # ... your check logic here if check_failed : ... errors . append ( Error ( 'an error' , hint = 'A hint.' , ... = checked_object , id = 'myapp.E001' , ) ) return errors The check function must accept an app_configs argu ...
https://man.plustar.jp/django/topics/checks.html - [similar]
フォーム API — Django 4.0.6 ドキュメント 11856
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ntactForm ( data ) >>> f . is_valid () False Form. errors ¶ エラーメッセージのディクショナリを使用するには、 ... errors 属性にアクセスしてください: >>> f . errors {'sende ... ある可能性があるからです。 is_valid() を呼び出す前に errors にアクセスすることもできます。フォームのデータは、 ... 最初に is_valid() を呼び出したり errors にアクセスすることで検証されます。 バリデーションの ...
https://man.plustar.jp/django/ref/forms/api.html - [similar]
フォームを使う — Django 4.0.6 ドキュメント 11154
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... れます。例えば次のようにできます: {{ form.non_field_errors }} < div class = "fieldWrapper" > {{ form.subject. ... v > < div class = "fieldWrapper" > {{ form.message.errors }} < label for = " {{ form.message.id_for_label }} ... iv > < div class = "fieldWrapper" > {{ form.sender.errors }} < label for = " {{ form.sender.id_for_label }} ... > < div class = "fieldWrapper" > {{ form.cc_myself.errors }} < label for = " {{ form.cc_myself.id_for_label ...
https://man.plustar.jp/django/topics/forms/index.html - [similar]
Django 1.7 release notes — Django 4.0.6 ドキュメント 10162
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... eviously there were two main patterns for handling errors in forms: Raising a ValidationError from within ce ... lean_<fieldname>() , or Form.clean() for non-field errors.) Fiddling with Form._errors when targeting a spec ... ific field in Form.clean() or adding errors from outside of a "clean" method (e.g. directly fr ... (i.e. which method raised the exception) where the errors belong and automatically process them. This remain ...
https://man.plustar.jp/django/releases/1.7.html - [similar]
How to manage error reporting — Django 4.0.6 ドキュメント 9527
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ing with DEBUG set to False means you'll never see errors generated by your site -- everyone will instead se ... your public error pages. You need to keep track of errors that occur in deployed sites, so Django can be con ... figured to create reports with details about those errors. E メールのレポート ¶ サーバーエラー ¶ DEBUG が Fa ... 04 エラー ¶ Django can also be configured to email errors about broken links (404 "page not found" errors). ...
https://man.plustar.jp/django/howto/error-reporting.html - [similar]
django.utils.encoding — Django 4.0.6 ドキュメント 9395
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ( s , encoding = "utf-8" , strings_only = False , errors = "strict" ): """ Return a string representing 's' ... s return force_str ( s , encoding , strings_only , errors ) _PROTECTED_TYPES = ( type ( None ), int , float ... ( s , encoding = "utf-8" , strings_only = False , errors = "strict" ): """ Similar to smart_str(), except t ... isinstance ( s , bytes ): s = str ( s , encoding , errors ) else : s = str ( s ) except UnicodeDecodeError a ...
https://man.plustar.jp/django/_modules/django/utils/encoding.html - [similar]
フォームセット (Formset) — Django 4.0.6 ドキュメント 8759
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... formset . is_valid () False >>> formset . non_form_errors () ['Please submit at most 1000 forms.'] When abso ... ta ) >>> formset . is_valid () False >>> formset . errors [{}, {'pub_date': ['This field is required.']}] 見 ... て分かるように、 formset.errors はリストで、 そのエントリーはフォームセット内のフォ ... す。 >>> # Using the previous example >>> formset . errors [{}, {'pub_date': ['This field is required.']}] >> ...
https://man.plustar.jp/django/topics/forms/formsets.html - [similar]
django.core.exceptions — Django 4.0.6 ドキュメント 8402
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... d of problem with a model field.""" pass NON_FIELD_ERRORS = "__all__" [ドキュメント] class ValidationError ( ... message` argument can be a single error, a list of errors, or a dictionary that maps field names to lists of ... errors. What we define as an "error" can be either a simp ... _list ) else : error_dict . setdefault ( NON_FIELD_ERRORS , []) . extend ( self . error_list ) return error_ ...
https://man.plustar.jp/django/_modules/django/core/exceptions.html - [similar]
Built-in Views — Django 4.0.6 ドキュメント 7913
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... omes with a few views by default for handling HTTP errors. To override these with your own custom views, see ... jango loads a special view devoted to handling 404 errors. By default, it's the view django.views.defaults.p ... cutes special-case behavior in the case of runtime errors in view code. If a view results in an exception, D ... n empty Context to lessen the chance of additional errors. If DEBUG is set to True (in your settings module) ...
https://man.plustar.jp/django/ref/views.html - [similar]
テストツール — Django 4.0.6 ドキュメント 7846
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nst databases not in databases will give assertion errors to prevent state leaking between tests. TestCase. ... to query other databases will result in assertion errors to prevent state leaking between tests. Use the da ... tCase. assertFormError ( response , form , field , errors , msg_prefix = '' ) ¶ Asserts that a field on a fo ... rm raises the provided list of errors when rendered on the form. response must be a resp ...
https://man.plustar.jp/django/topics/testing/tools.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT