diff --git a/school/static/css/home.css b/school/static/css/home.css index 50e4f4c..47506bc 100644 --- a/school/static/css/home.css +++ b/school/static/css/home.css @@ -129,10 +129,7 @@ margin-top: 15vh; .bulletin_board_table th{ height: 1vh; border-color: black; - -} -td{ - + } .first_row{ @@ -147,7 +144,13 @@ background-color: white; width: 8vw; background-color: white; } -td.content_board{ - +#board{ +background-color: #CDF0FF; +height: 100%; +width: 100%; +border-radius: 44px; } - +.content_board{ + width: 560px; + height: 402px; +} \ No newline at end of file diff --git a/school/templates/home.html b/school/templates/home.html index e716019..bbea469 100644 --- a/school/templates/home.html +++ b/school/templates/home.html @@ -27,7 +27,13 @@
- + @@ -56,6 +62,7 @@
1
+ {%for a in notices%} + + {%endfor%} +
2
+
diff --git a/school/views.py b/school/views.py index fed3df8..94e617d 100644 --- a/school/views.py +++ b/school/views.py @@ -9,7 +9,11 @@ # Create your views here. def home(request): - return render(request, 'home.html') + notices = Notice.objects.all().order_by('-Notice_pub_date') + paginator = Paginator(notices, 3) + page_number = request.GET.get('page') + page = paginator.get_page(page_number) + return render(request, 'home.html',{'notices':page}) ## 메인 자유게시판 def mainpage(requset):