1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
from builder.base import BuildNew from django.urls import reverse class BuildTutorals(BuildNew): def build(self): self.build_list_view( base_path=reverse("tutorials:list"), paginate_by=99999 ) self.build_detail_view() def builder(): j = BuildTutorals("tutorials", "tutorial") j.build()