5
5
50VAJJ2017-03-18 17:50:44
Django
50VAJJ, 2017-03-18 17:50:44

How to assign variable in html link?

<a href="{% category.alias = 'ctg_1' %}">
<a href="{{ category.alias = 'ctg_1' }}">

{{ print (category.alias) }}
All lines are wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2017-03-19
@deliro

You don't understand django. Start here https://docs.djangoproject.com/en/1.10/intro/tutor...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question