Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fix #19809 -- Don't check if docs exist in DB.

The docs database is built from the JSON version of the docs, which
doesn't include special pages such as indexes.

This reverts commit 1af4480.

d51819e has a better and sufficient

Refs #18930.
  • Loading branch information...
1 parent c125bfd commit b35966376ac8c1d8caf05a5e882dfb27325a1593 @aaugustin aaugustin committed
Showing with 2 additions and 5 deletions.
  1. +2 −5 docs/
7 docs/
@@ -5,8 +5,7 @@
import django.views.static
from django.core import urlresolvers
from django.http import Http404
-from django.shortcuts import get_object_or_404, redirect, render_to_response
+from django.shortcuts import render_to_response, redirect
from django.template import RequestContext
from django.utils import simplejson
@@ -14,7 +13,7 @@
from .context_processors import recent_release
from .forms import DocSearchForm
-from .models import DocumentRelease, Document
+from .models import DocumentRelease
from .utils import get_doc_root_or_404, get_doc_path_or_404
@@ -39,8 +38,6 @@ def document(request, lang, version, url):
except UnicodeEncodeError:
raise Http404
- get_object_or_404(Document,
- release__lang=lang, release__version=version, path=url)
docroot = get_doc_root_or_404(lang, version)
doc_path = get_doc_path_or_404(docroot, url)

0 comments on commit b359663

Please sign in to comment.
Something went wrong with that request. Please try again.