Stocks django
-
I'm inserting another template into the template, asking for a set of variables, including a reference (action):
{% include "ssn/block_form_as_table.html" with form=form action='ssn:hoster_server_create_action' submit_title='Create a server' %}
Now I had to pass the parameter reference as a variable. How can I do the following:
{% include "ssn/block_form_as_table.html" with form=form action={% url 'ssn:hoster_server_edit_action' server_id=server.id %} submit_title='Save a server' %}
The same problem I'm facing when I want to.
submit_title
Not just the text.Create a server
♪{% trans 'Create a server' %}
♪So general, how can I use the results of other strategies in the parameters of the tags?
-
It's better to use these things. https://docs.djangoproject.com/en/1.8/howto/custom-template-tags/ , there can also be transferable parameters and more opportunities to work with the template.