mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-20 23:20:23 +00:00
13 lines
203 B
Python
13 lines
203 B
Python
|
|
from django.views.generic import ListView, DetailView
|
||
|
|
|
||
|
|
from .models import Post
|
||
|
|
|
||
|
|
|
||
|
|
class PostListView(ListView):
|
||
|
|
model = Post
|
||
|
|
paginate_by = 10
|
||
|
|
|
||
|
|
|
||
|
|
class PostDetailView(DetailView):
|
||
|
|
model = Post
|