-render(request, 'NotAnApplication/just.html')
+return render(request, 'NotAnApplication/just.html')
PostgreSQL 9.4.13 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4), 64-bit
Django supports PostgreSQL 10 and higher. psycopg2 2.8.4 or higher is required, though the latest release is recommended.
То есть, закрытие соединения на уровне кода..
Connections can be used as context managers. Note that a context wraps a transaction: if the context exits with success the transaction is committed, if it exits with an exception the transaction is rolled back. Note that the connection is not closed by the context and it can be used for several contexts
SET SESSION idle_in_transaction_session_timeout = '2min';
def el(request, el_id):
{% for lesson in get_profile.student_group.lessons.all %}{{ lesson.name }}<br>{% endfor %}
<br>
, а у вас тут не то, что переводов строк нет, но и пробелов.data = request.data.get('price')
<img src="cid:20161010_dailykpisnapshot_OCuZ4O4.png"
, а сами изображения, как аттачменты с заголовками типа: Content-Type: image/png
Content-Disposition: inline
Content-Transfer-Encoding: base64
Content-ID: <20161010_dailykpisnapshot_OCuZ4O4.png>
path('/', views.product_list, name='by_product_type'),
path('/', views.product_list, name='by_main_category'),
path('/', views.product_list, name='product_list_by_category'),
product_type = get_object_or_404(ProductType, slug=type_slug)