Plankton_Detector/PlanktonDetector/Community/views.py

16 lines
325 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
2023-12-19 17:33:46 +01:00
template_name = "post_details.html"