You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if i try to use your template tag i get django.template.base.TemplateSyntaxError:
TemplateSyntaxError: 'url' received some positional argument(s) after some keyword argument(s)
This syntax is really helpful if i have to include another template snippet that's usefull on multiple pages and just pass it some predetermined values for current template context, and it's really clean way to do it.
Example:
{% url 'make_donation' fundraiser_id=fundraiser.id as donation_url %}
{% include 'fundraisers/snippets/donate_box.html' with active=fundraiser.active closed_msg=closed_msg donation_url=donation_url %}
django supports this syntax for url tag:
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#url
But if i try to use your template tag i get django.template.base.TemplateSyntaxError:
This syntax is really helpful if i have to include another template snippet that's usefull on multiple pages and just pass it some predetermined values for current template context, and it's really clean way to do it.
Example:
parse_bits locals:
The text was updated successfully, but these errors were encountered: