From 18b3cf4583ec596906eb5ecf9e12fcc62f84b7c6 Mon Sep 17 00:00:00 2001 From: Date: Fri, 8 Dec 2017 02:28:01 +0300 Subject: [PATCH] heroku --- blog/templates/blog/post_edit.html | 5 ++--- blog/views.py | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/templates/blog/post_edit.html b/blog/templates/blog/post_edit.html index 1b79813..82d1c77 100644 --- a/blog/templates/blog/post_edit.html +++ b/blog/templates/blog/post_edit.html @@ -1,11 +1,10 @@ -{% extends 'blog/base.html' %} +{% comment %}{% extends 'blog/base.html' %}{% endcomment %} {% block content %} -
+
{% csrf_token %} {{ form.as_p }}
{% endblock %} - diff --git a/blog/views.py b/blog/views.py index c9307ac..e8335ba 100644 --- a/blog/views.py +++ b/blog/views.py @@ -30,6 +30,7 @@ def cloud(): def post_list(request, page='1', tag=None): + print('lalala') if tag is None: post_list = Post.objects.filter(published_date__lte=timezone.now()).order_by('-published_date')#[int(page)*5-5:int(page)*5] else: