Re: {% url %} in conjunction with context variable

2009-06-10 Thread Margie
Or really, I guess the problem is not exactly that I can't access a context variable inside of {% url %}. I can do that in general. But in this case I am trying create the url name string on the fly by concatenating "list_" with {{app_name}}. Since there is no space before 'app_name', there's n

Re: {% url %} in conjunction with context variable

2009-06-10 Thread Margie
Yes, I've used the {% url %} tag lots of times, but in this case I am trying to figure out how to incorporate a context variable into it. As I mentioned in my example, app_name is in my context. It will contain a string such as "task" or "product".In my urls I have a url whose name is set to

Re: {% url %} in conjunction with context variable

2009-06-10 Thread Dhruv Adhia
url Returns an absolute URL matching given view with its parameters. Documentation for using url tag This is a way to define links that aren't tied to a particular URL configuration: {% url path.to.some_view arg1,arg2,name1=value1 %} The first argument is a path to a view. It can be an absolut

{% url %} in conjunction with context variable

2009-06-10 Thread Margie
I'm trying to figure out how to use the {% url %} tag in conjunction with a context variable. For example, I have the context variable 'app_name' available in my template, and I'd like to do something like this: List {{app_name}} Anyone know how to do this? Margie --~--~-~--~~-