작정하고 장고 - ListView, Pagination
ListView, Pagination 소개 및 적용 class ArticleListView(ListView): model = Article context_object_name = 'article_list' template_name = 'articleapp/list.html' paginate_by = 3 ArticleListView를 만들어준다. app_name = 'articleapp' urlpatterns = [ path('list/', ArticleListView.as_view(), name='list'), path('create/', ArticleCreateView.as_view(), name='create'), path('detail/', ArticleDetailView.as_view(), nam..
2023. 5. 26.