@@ -0,0 +1,2775 @@
+from django.core import serializers%0Afrom django.http import HttpResponse, JsonResponse%0Afrom Course.models import *%0Afrom django.views.decorators.csrf import csrf_exempt%0Afrom django.views.decorators.http import require_POST, require_GET%0Aimport json%0A%0A%0A@csrf_exempt%0A@require_POST%0Adef addCourseCurriculum(request):%0A    response_data = %7B%7D%0A    try:%0A        C = CourseCurriculum.objects.addCourseCurriculum(request.POST)%0A    except Exception as e:%0A        response_data%5B'success'%5D = '0'%0A        response_data%5B'exception'%5D = str(e)%0A    else:%0A        response_data%5B'success'%5D = '1'%0A        data = serializers.serialize('json', %5BC, %5D)%0A        response_data%5B%22coursecurriculum%22%5D = json.loads(data)%0A    return JsonResponse(response_data)%0A%0A%0A@csrf_exempt%0A@require_POST%0Adef editCourseCurriculum(request):%0A    response_data = %7B%7D%0A    try:%0A        C = CourseCurriculum.objects.editCourseCurriculum(request.POST)%0A    except Exception as e:%0A        response_data%5B'success'%5D = '0'%0A        response_data%5B'exception'%5D = str(e)%0A    else:%0A        response_data%5B'success'%5D = '1'%0A        data = serializers.serialize('json', %5BC, %5D)%0A        response_data%5B%22coursecurriculum%22%5D = json.loads(data)%0A    return JsonResponse(response_data)%0A%0A%0A@csrf_exempt%0A@require_POST%0Adef deleteCourseCurriculum(request):%0A    response_data = %7B%7D%0A    try:%0A        C = CourseCurriculum.objects.deleteCourseCurriculum(request.POST)%0A    except Exception as e:%0A        response_data%5B'success'%5D = '0'%0A        response_data%5B'exception'%5D = str(e)%0A    else:%0A        response_data%5B'success'%5D = '1'%0A        data = serializers.serialize('json', %5BC, %5D)%0A        response_data%5B%22coursecurriculum%22%5D = json.loads(data)%0A    return JsonResponse(response_data)%0A%0A%0A@csrf_exempt%0A@require_GET%0Adef getCourseCurriculum(request):%0A    response_data = %7B%7D%0A    try:%0A        C = CourseCurriculum.objects.getCourseCurriculum(request.GET)%0A    except Exception as e:%0A        response_data%5B%22success%22%5D = 0%0A        response_data%5B'exception'%5D = str(e)%0A    else:%0A        response_data%5B%22success%22%5D = 1%0A        data = serializers.serialize('json', %5BC.instructor, %5D)%0A        response_data%5B%22coursecurriculum%22%5D = json.loads(data)%0A%0A    return JsonResponse(response_data)%0A%0A%0A@csrf_exempt%0A@require_GET%0Adef retrieveCourseCurriculum(request):%0A    response_data = %7B%7D%0A    try:%0A        C = CourseCurriculum.objects.retrieveCourseCurriculum(request.GET)%0A    except Exception as e:%0A        response_data%5B'success'%5D = '0'%0A        response_data%5B'exception'%5D = str(e)%0A    else:%0A        response_data%5B'success'%5D = '1'%0A        global data%0A        try:%0A            data = serializers.serialize('json', C)%0A        except Exception as e:%0A            data = serializers.serialize('json', %5BC, %5D)%0A        response_data%5B%22coursecurriculum%22%5D = json.loads(data)%0A%0A    return JsonResponse(response_data)%0A

Create CourseCurriculum.py