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.