This commit is contained in:
2017-12-08 02:28:01 +03:00
parent 4688e8cba7
commit 18b3cf4583
2 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,10 @@
{% extends 'blog/base.html' %}
{% comment %}{% extends 'blog/base.html' %}{% endcomment %}
{% block content %}
<div class="block">
<div class="block">
<form method="POST" class="post-form">{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="save btn btn-default">Save</button>
</form>
</div>
{% endblock %}

View File

@ -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: