def flatpage(request, url):
    if not url.startswith('/'):
        url = '/' + url
    site_id = get_current_site(request).id
    try:
        f = get_object_or_404(FlatPage,
            url__exact=url, sites__id__exact=site_id)
    except Http404:
        if not url.endswith('/') and settings.APPEND_SLASH:
            url += '/'
            f = get_object_or_404(FlatPage,
                url__exact=url, sites__id__exact=site_id)
            return HttpResponsePermanentRedirect('%s/' % request.path)
        else:
            raise
    return render_flatpage(request, f)
no such http resource
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/flatpages/views.py/flatpage--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/resource/tests/resource_manager_test_case.py/ResourceManagerTestCase.test_no_such_http_resource