Shouldn't be too hard to implement I don't think. Basically just loop 
through your list of keywords and replace them with a link. Something like 
this:

def make_keyword_links(content):
    for keyword in Keyword.objects.all():
        content = content.replace(keyword.text, keyword.link)
    return content

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/7YS1QL-haOsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to