- #question = get_object_or_404(Question, id=id)
- try:
- question = Question.objects.get(id=id)
- except:
- if slug:
- question = match_question_slug(slug)
- if question is not None:
- return HttpResponseRedirect(question.get_absolute_url())
-
- raise Http404()
-