Actually, i have lot of different-2 stream, now i want to make it as link,
so that i can click on particular stream and it should filter data
according to that stream({{c.stream}}) on same page.

thanks

On Fri, Mar 8, 2013 at 3:08 PM, Daniel Roseman <[email protected]>wrote:

> On Friday, 8 March 2013 09:07:12 UTC, Avnesh Shakya wrote:
>
>> I am using an anchor tag and have to access its content in python. I have
>> to access the 'text' from this.
>>
>> in html page--
>>
>> {% for c in courses%}
>> <tr>
>> <div><td><b><I>{{c.title}}</I>**</b></td><td><a
>> href="cd.html">{{c.stream}}</**a></td><td><b><I>
>>
>> i want to get {{c.stream}} value so that i can use it in views.py i want
>> to filter the content acoording to it, and want to display after shorting
>> acc. it.....
>>
>> plz help me...
>>
>> thanks
>>
>
> It's very unclear what you want to do. But I suspect you should be trying
> to use that parameter as part of your URL:
>
>     <a href="cd/{{ c.stream }}/">{{ c.stream }}</a>
>
> Or even better, use the {% url %} tag to calculate the correct URL.
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to