<gh_stars>0
from django.shortcuts import render
from rest_framework import viewsets
from courses.models import MyCourse
from courses.serializers import CourseSerializer

# Create your views here.
class CourseView(viewsets.ModelViewSet):
    queryset = MyCourse.objects.all()
    serializer_class = CourseSerializer

from django.shortcuts import render
from rest_framework import viewsets
from courses.models import MyCourse
from courses.serializers import CourseSerializer

# Create your views here.
class CourseView(viewsets.ModelViewSet):
    queryset = MyCourse.objects.all()
    serializer_class = CourseSerializer
# Create your views here.