Skip to content

Commit 66c0204

Browse files
authored
Update README.md
1 parent ce88380 commit 66c0204

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# django-css-grid
22
A django app for creating css grids
3+
4+
# views.py
5+
from django.views import ListView
6+
from cssgrid import CSSGridMixin
7+
from .models import Poll
8+
9+
10+
class PollsListView(CSSGridMixin, ListView):
11+
12+
queryset = Poll.objects.all()
13+
css_grid = [
14+
['header', 'header', 'header],
15+
['sidebar', 'content', 'content']
16+
]
17+

0 commit comments

Comments
 (0)