def _is_valid_path(path, urlconf=None):
    try:
        urlresolvers.resolve(path, urlconf)
        return True
    except urlresolvers.Resolver404:
        return False
Returns True if the given path resolves against the default URL resolver,
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/middleware/common.py/_is_valid_path