70 lines
920 B
Plaintext
70 lines
920 B
Plaintext
==================
|
|
Url Basic
|
|
==================
|
|
|
|
{% url 'view-name' %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(url_block
|
|
(string))
|
|
(content))
|
|
|
|
==================
|
|
Url With Positional Args
|
|
==================
|
|
|
|
{% url 'view-name' arg1 arg2 %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(url_block
|
|
(string)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier)))))
|
|
(content))
|
|
|
|
==================
|
|
Url With Keyword Args
|
|
==================
|
|
|
|
{% url 'view-name' key=val %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(url_block
|
|
(string)
|
|
(identifier)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier)))))
|
|
(content))
|
|
|
|
==================
|
|
Url With As
|
|
==================
|
|
|
|
{% url 'view-name' as myurl %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(url_block
|
|
(string)
|
|
variable: (identifier))
|
|
(content))
|