Very, very rudimentary support for making h-entries: they don't look so good and don't appear on the homepage yet but it's a good start
This commit is contained in:
parent
430f8d9a1d
commit
950459cd5f
14 changed files with 161 additions and 2 deletions
10
entries/views.py
Normal file
10
entries/views.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from django.shortcuts import render
|
||||
from .models import Entry
|
||||
|
||||
|
||||
def index(request, kind):
|
||||
entries = Entry.objects.filter(kind=kind.id)
|
||||
return render(request, 'entries/index.html', {
|
||||
'entries': entries,
|
||||
'title': kind.plural
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue