herreweb_site/2023-12-24-old/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()