@csrf_exempt
def csw(request):
    # serialize settings.CSW into SafeConfigParser
    # object for interaction with pycsw
    mdict = dict(settings.CSW, **CONFIGURATION)

    # update server.url
    server_url = '%s://%s%s' % \
        (request.META['wsgi.url_scheme'],
         request.META['HTTP_HOST'],
         request.META['PATH_INFO'])

    mdict['server']['url'] = server_url

    env = request.META.copy()

    env.update({ 
            'local.app_root': os.path.dirname(__file__),
            'REQUEST_URI': request.build_absolute_uri(),
            })
            
    csw = server.Csw(mdict, env)

    content = csw.dispatch_wsgi()

    return HttpResponse(content, content_type=csw.contenttype)
Generate SHA256 hash for password.
dataset/ETHPy150Open azavea/Open-Data-Catalog/OpenDataCatalog/catalog/views.py/csw--crossover with--dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/auth/user/utils.py/generate_password_hash