image in a jumbotron

21 views
Skip to first unread message

R U

unread,
Jul 26, 2016, 6:10:46 PM7/26/16
to web...@googlegroups.com
Sorry to bother with something so trivial but this problem is not getting solved by me
I cannot get an image to show.  I am using python anywhere the image is stored in static/images as
 
 DVimg.JPG

Then in views/default/index.html  I have the following. 

<div class="jumbotron text-center">
 <div class="row text-center slideanim">
  <h1>some big text</h1>
  <h2>la la </h2><br>
  <h4>blah and blah</h4>


    <img class="img-responsive" src="DVimg.JPG" alt="One fine Picture">
</div>
   <div>

    <p>funny stuff.</p>
<p>interesting things</p>
  </div>
  </div>

thanks in advance   Rob 

Dave S

unread,
Jul 26, 2016, 7:28:52 PM7/26/16
to web2py-users


On Tuesday, July 26, 2016 at 3:10:46 PM UTC-7, R U wrote:
Sorry to bother with something so trivial but this problem is not getting solved by me
I cannot get an image to show.  I am using python anywhere the image is stored in static/images as
 
 DVimg.JPG

Then in views/default/index.html  I have the following. 

<div class="jumbotron text-center">
 <div class="row text-center slideanim">
  <h1>some big text</h1>
  <h2>la la </h2><br>
  <h4>blah and blah</h4>


    <img class="img-responsive" src="DVimg.JPG" alt="One fine Picture">
</div>
   <div>



Should that be

  <img class="img-responsive" src={{URL("static", "images", "DVimg.JPG"}} alt="One fine Picture">
?


 
    <p>funny stuff.</p>
<p>interesting things</p>
  </div>
  </div>

thanks in advance   Rob 


Retrospectively, you're welcome ... if this helps.

/dps
 
Reply all
Reply to author
Forward
0 new messages