from django.http import Http404, HttpResponse
from django.template import RequestContext
from django.contrib.sites.models import Site
from django.http import Http404, HttpResponse
from django.template import RequestContext
from django.contrib.sites.models import Site
- return node.instance.render_to_response(request, path=path)
+ if subpath and not node.instance.accepts_subpath:
+ raise Http404
+ return node.instance.render_to_response(request, path=path, subpath=subpath)