検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 21 for DoesNotExist (0.006 sec.)
Model クラスのリファレンス — Django 4.0.6 ドキュメント 15729
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e complete list of Model reference guides . 属性 ¶ DoesNotExist ¶ exception Model. DoesNotExist ¶ This exception i ... is found for the given lookups. Django provides a DoesNotExist exception as an attribute of each model class to i ... tion is a subclass of django.core.exceptions.ObjectDoesNotExist . MultipleObjectsReturned ¶ exception Model. Multi ... ing objects . 目次 Model クラスのリファレンス 属性 DoesNotExist MultipleObjectsReturned objects 前のトピックへ Rel ...
https://man.plustar.jp/django/ref/models/class.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 9251
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ager, but it raises Http404 instead of the model's DoesNotExist exception. Required arguments ¶ klass A Model clas ... yModel . objects . get ( pk = 1 ) except MyModel . DoesNotExist : raise Http404 ( "No MyModel matches the given qu ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
Django の例外 — Django 4.0.6 ドキュメント 9082
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ss , which initializes the ORM, is complete. ObjectDoesNotExist ¶ exception ObjectDoesNotExist [ソース] ¶ The base ... class for Model.DoesNotExist exceptions. A try/except for ObjectDoesNotExist wi ... ll catch DoesNotExist exceptions for all models. See get() . EmptyResult ... implementing custom lookups and expressions. FieldDoesNotExist ¶ exception FieldDoesNotExist [ソース] ¶ The Field ...
https://man.plustar.jp/django/ref/exceptions.html - [similar]
QuerySet API リファレンス — Django 4.0.6 ドキュメント 8727
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... f get() doesn't find any object, it raises a Model.DoesNotExist exception: Entry . objects . get ( id =- 999 ) # r ... aises Entry.DoesNotExist If get() finds more than one object, it raises a M ... example, you can use django.core.exceptions.ObjectDoesNotExist to handle DoesNotExist exceptions from multiple mo ... dels: from django.core.exceptions import ObjectDoesNotExist try : blog = Blog . objects . get ( id = 1 ) entry ...
https://man.plustar.jp/django/ref/models/querysets.html - [similar]
クエリを作成する — Django 4.0.6 ドキュメント 8558
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 。クエリにマッチする結果が存在しない場合、 get() は DoesNotExist 例外を起こします。この例外はクエリーが実行されるモ ... を持つ Entry オブジェクトがなければ、Django は Entry.DoesNotExist 例外を起こします。 同様に get() のクエリーが2つ以上 ... 場合に、前者は IndexError を起こすのに対して、後者は DoesNotExist を起こすことに注意してください。詳細については get ... assigned to this relationship, Django will raise a DoesNotExist exception. Instances can be assigned to the revers ...
https://man.plustar.jp/django/topics/db/queries.html - [similar]
Django 1.4 documentation 8219
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... id = 2 ) Traceback ( most recent call last ): ... DoesNotExist : Reporter matching query does not exist . .. # Cr ... ( id = 2 ) Traceback (most recent call last): ... DoesNotExist : Poll matching query does not exist. >>> Poll . o ... 綺麗に彩られたエラーページが表示されるはずです: ViewDoesNotExist at / polls / Could not import polls.views.index. V ... iew does not exist in module polls . views . このエラーは、まだ ind ...
https://man.plustar.jp/django/contents.html - [similar]
The Django template language: for Python programmers — Django 4.0.6 ドキュメン... 8219
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... name is ." Note that django.core.exceptions.ObjectDoesNotExist , which is the base class for all Django database ... API DoesNotExist exceptions, has silent_variable_failure = True . S ... ng Django templates with Django model objects, any DoesNotExist exception will fail silently. A variable can only ... emplate doesn't exist, this should raise a TemplateDoesNotExist error. get_template ( template_name , skip = None ...
https://man.plustar.jp/django/ref/templates/api.html - [similar]
The "sites" framework — Django 4.0.6 ドキュメント 8050
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... t_current_site ( request ) . id ) except Article . DoesNotExist : raise Http404 ( "Article does not exist on this ...
https://man.plustar.jp/django/ref/contrib/sites.html - [similar]
Django の認証方法のカスタマイズ — Django 4.0.6 ドキュメント 8050
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... bjects . get ( username = username ) except User . DoesNotExist : # Create a new user. There's no need to set a pa ... ser . objects . get ( pk = user_id ) except User . DoesNotExist : return None カスタムバックエンドによる認可の扱い ...
https://man.plustar.jp/django/topics/auth/customizing.html - [similar]
ビューを記述する — Django 4.0.6 ドキュメント 8050
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... oll . objects . get ( pk = poll_id ) except Poll . DoesNotExist : raise Http404 ( "Poll does not exist" ) return r ...
https://man.plustar.jp/django/topics/http/views.html - [similar]
PREV 1 2 3 NEXT