from django.urls import reverse from builder.base import BuildNew class BuildFigments(BuildNew): def build(self): self.build_list_view( base_path=reverse('figments:list'), paginate_by=99999 ) self.build_detail_view() self.build_feed('figments:feed') def builder(): j = BuildFigments("figments", "figment") j.build()