heroku
This commit is contained in:
parent
4688e8cba7
commit
18b3cf4583
@ -1,11 +1,10 @@
|
|||||||
{% extends 'blog/base.html' %}
|
{% comment %}{% extends 'blog/base.html' %}{% endcomment %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<form method="POST" class="post-form">{% csrf_token %}
|
<form method="POST" class="post-form">{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
<button type="submit" class="save btn btn-default">Save</button>
|
<button type="submit" class="save btn btn-default">Save</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user