def get_page_from_path(path, preview=False, draft=False):
 try:
  return get_page_queryset_from_path(path, preview, draft).get()
 except Page.DoesNotExist:
  return None

def get_page_from_path ( path , preview = False , draft = False ) : try : return get_page_queryset_from_path ( path , preview , draft ) . get ( ) except Page . DoesNotExist : return None
resolves a url path to a single page object .