Image depending on the text in Python/Django

Posted by PyOut on Stack Overflow See other posts from Stack Overflow or by PyOut
Published on 2010-04-23T07:20:11Z Indexed on 2010/04/23 7:23 UTC
Read the original article Hit count: 214

Filed under:
|
|

Hello,

How can I find an image, depending on the text?

I have image model with keywords:

class Post(models.Model):
    image = ImageField(_('Image'), blank=True, upload_to='folder')
    keywords = models.CharField(_('Keywords'), max_length=80)

And model which will serve as the search for a suitable image

class TextSearch(models.Model):
    body = models.TextField(_('Text'))

© Stack Overflow or respective owner

Related posts about django

Related posts about image