fnp
/
turniej.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
second edition
[turniej.git]
/
apps
/
edition1
/
views.py
diff --git a/apps/edition1/views.py
b/apps/edition1/views.py
new file mode 100644
(file)
index 0000000..
6d35feb
--- /dev/null
+++ b/
apps/edition1/views.py
@@ -0,0
+1,6
@@
+from django.shortcuts import render
+from poetry.models import Poem
+
+def home(request):
+ last = Poem.objects.all().order_by('-created_at')[:10]
+ return render(request, "edition1/home.html", locals())