15 lines
434 B
Python

from django.views.generic import ListView
from django.shortcuts import render
from django.http import HttpResponse
from odyseescraper.models import OdyseeChannel, OdyseeRelease
class OdyseeReleaseListView(ListView):
model = OdyseeRelease
paginate_by = 3 * 5
template_name = 'release_list.html'
class OdyseeChannelListView(ListView):
model = OdyseeChannel
paginate_by = 10
template_name = 'channel_list.html'