fab my_task
/path/to/venv/bin/python -m fab my_task
.# urls.py
urlpatterns = [
url(r'^$', views.index),
]
# views.py
def index(request):
return render(request, 'index.html', {
'quote': Quote.objects.all(),
'about': About.objects.all(),
})
<div id="quote">
{% for q in quote %}
{{ q }}
{% endfor %}
</div>
<div id="about">
{% for a in about %}
{{ a }}
{% endfor %}
</div>