1
Standard {% url %} tag accepts strings.
#
it accepts strings in a variable only
No. It accepts string literals too.
Yes, that was stupid i had my string the same name as a variable and so it resolved to something else...
No... standard url tag does NOT accept hard-coded strings, well it does but it cannot resolve. Try it!
Why would I go through all this trouble if it worked? Please try before you make all these comments (that confuses me).
I use in some of my projects url tag with string literals and it works fine. Examples: {% url generics.staticpages.views.dispatcher slug="termsofuse"%} or {% url generics.accounts.views.action "reg"%}
Standard variable resolver handles literals well.
I don't know what is problem for you...
my problem was that i used single quotes, what a bummer
Comments
Standard {% url %} tag accepts strings.
#
it accepts strings in a variable only
#
No. It accepts string literals too.
#
Yes, that was stupid i had my string the same name as a variable and so it resolved to something else...
#
No... standard url tag does NOT accept hard-coded strings, well it does but it cannot resolve. Try it!
#
Why would I go through all this trouble if it worked? Please try before you make all these comments (that confuses me).
#
I use in some of my projects url tag with string literals and it works fine. Examples: {% url generics.staticpages.views.dispatcher slug="termsofuse"%} or {% url generics.accounts.views.action "reg"%}
Standard variable resolver handles literals well.
I don't know what is problem for you...
#
my problem was that i used single quotes, what a bummer
#