herreweb_site/herreweb_backend/project/views.py

9 lines
279 B
Python

from django.shortcuts import render
from rest_framework import viewsets
from project.serializers import ProjectSerializer
from .models import Project
class ProjectView(viewsets.ModelViewSet):
serializer_class = ProjectSerializer
queryset = Project.objects.all()