user_image
By  ywhyme    On   2018年1月25日 11:55

get_object_or_404(klass,, pk=question_id) klass may be a Model, Manager, or QuerySet object. All other passed arguments and keyword arguments are used in the get() query. pk是id的意思,当然也可写成id = question_id,或者写成question_text="你想查询的question_text"