urls_belcanto.py:
# working by API
(r'^sk_api.html$', 'main.catalogs.sk_api'),
---------
# working by API
def sk_api( request ):
#my_spis = { "sknom": sknom }
my_spis = { }
my_spis["sknom"] = "val_sknom"
#
return render(request, "sk_testapi.html", my_spis )
----------
sk_testapi.html:
sk_testapi
{% block main %}
sknom = {{sknom}}.
{% endblock main %}
--------
result:
sk_testapi
sknom = val_sknom.