title: How can I put an image from DB table in Web2py?
body: <p>I'm trying to put an image in view section I have defined a table but it seems<code>{{for table in tables:}}</code> doesn't work. My code is:</p>
  
  <p><strong>default.py</strong> (Controller)</p>
  
  <pre><code>def index():
      return dict(message=T('Hello World'))
  
  def Tables(): 
     return dict(tables=db().select(db.table.ALL))
  
  def download():
      return response.download(request, db)
  </code></pre>
  
  <p><strong>db.py</strong> (model)</p>
  
  <pre><code>db.define_table('table',
            Field('image', type='upload')
  </code></pre>
  
  <p>This is it and I tried to do <code>{{for table in tables:}}</code> before putting the image, but it says, the <code>tables is not defined.</code>I used <code>{{pass}}</code> after <code>for</code>. Can you guys help me a bit?</p>
  
  <p>Cheers</p>