Plankton_Detector/PlanktonDetector/Community/views.py

15 lines
285 B
Python
Raw Normal View History

2023-12-13 02:11:29 +01:00
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