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,4 +1,4 @@
{% extends 'blog/base.html' %} {% comment %}{% extends 'blog/base.html' %}{% endcomment %}
{% block content %} {% block content %}
<div class="block"> <div class="block">
@ -8,4 +8,3 @@
</form> </form>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -30,6 +30,7 @@ def cloud():
def post_list(request, page='1', tag=None): def post_list(request, page='1', tag=None):
print('lalala')
if tag is None: 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] post_list = Post.objects.filter(published_date__lte=timezone.now()).order_by('-published_date')#[int(page)*5-5:int(page)*5]
else: else: