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: