Friday, March 8, 2013

how to get value of anchor tag which is taken from database using python.

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 

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate