Django Book 翻译
菜单>:
TOC
返回
原文:
One common idiom to use ``get()`` and raise ``Http404`` if the object doesnt exist. This idiom is captured by ``get_object_or_404()`` . This function takes a Django model as its first argument and an arbitrary number of keyword arguments, which it passes to the default managers ``get()`` function. It raises ``Http404`` if the object doesnt exist, for example:
翻译:
备注:
译者: