Esempio n. 1
0
def get_crm_url():
    crm_config = get_config("crm_config")
    return crm_config["value"]["crm_url"]
Esempio n. 2
0
def ajax_get_sharing_groups(request):
    try:
        sharing_groups = get_config("sharing_groups")
        return JsonResponse(sharing_groups, safe=False, status=200)
    except Exception as e:
        return JsonResponse({'message': e.message}, status=500)
Esempio n. 3
0
def ajax_get_markings(request):
    try:
        markings = get_config("markings")
        return JsonResponse(markings, safe=False, status=200)
    except Exception as e:
        return JsonResponse({'message': e.message}, status=500)
Esempio n. 4
0
def ajax_get_crm_config(request):
    try:
        config = get_config("crm_config")
        return JsonResponse(config, safe=False, status=200)
    except Exception as e:
        return JsonResponse({'message': e.message}, status=500)