Plankton_Detector/PlanktonDetector/Community/views.py
2023-12-19 17:33:46 +01:00

16 lines
325 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
template_name = "post_details.html"