A
Size: a a a
A
AA
AA
AG
prefetch_related
не забудьAA
prefetch_related
не забудьAA
A
AA
A
AA
AG
IndexError
и исключения не будет)AA
IndexError
и исключения не будет)AA
IndexError
и исключения не будет)AA
IndexError
и исключения не будет)class AboutView(generic.TemplateView):
model = About
template_name = 'blog/about.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['about'] = About.objects.all()
return context
{% block content %}
{% if about %}
{{ about.0.content|safe }}
{% else %}
<div class="post-preview">
<h2 class="post-title text-muted text-center">
Пока нет ничего.
</h2>
</div>
{% endif %}
{% endblock content %}
AG
AA
AA
AH
AG
enctype="multipart/form-data"
есть у html-формы?AH
enctype="multipart/form-data"
есть у html-формы?