@staticmethod
def _get_path(request):
    if isinstance(request, HTTPrettyRequest):
        path = request.path
    else:
        path = (request.full_path if hasattr(request, 'full_path') else path_url(request.url))
    return path
@staticmethod
def _get_path(request):
    if isinstance(request, HTTPrettyRequest):
        path = request.path
    else:
        path = (request.full_path if hasattr(request, 'full_path') else path_url(request.url))
    return path