Plankton_Detector/PlanktonDetector/Community/views.py
2023-12-13 02:11:29 +01:00

15 lines
285 B
Python

from django.shortcuts import render
from django.views.generic import ListView, DetailView
from .models import Post, Comment
# Create your views here.
class ListPosts(ListView):
model = Post
template_name = "list_posts.html"
class PostDetails(DetailView):
model = Post