Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
django-bootstrap4를 통한 페이징 처리 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
askcompany-kr committed Feb 3, 2020
1 parent c32321d commit 83fed86
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions askcompany/settings.py
Expand Up @@ -39,6 +39,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
# third apps
'bootstrap4',
'django_extensions',
'debug_toolbar',
# locals apps
Expand Down
7 changes: 5 additions & 2 deletions instagram/templates/instagram/post_list.html
@@ -1,3 +1,5 @@
{% load bootstrap4 %}

<!doctype html>
<html lang="ko">
<head>
Expand Down Expand Up @@ -34,7 +36,8 @@
</tbody>
</table>

{{ is_paginated }}
{{ page_obj }}
{% if is_paginated %}
{% bootstrap_pagination page_obj size="small" justify_content="center" %}
{% endif %}
</body>
</html>
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -2,3 +2,4 @@ django~=3.0.0
pillow
django-debug-toolbar
django-extensions
django-bootstrap4

0 comments on commit 83fed86

Please sign in to comment.