python - HTML Image Insertion Django -


i'm working build django web application. i'm using adobe brackets html , i'm trying use image folders on website. image appears during brackets simulation, not during django runserver.

here folder directory:

mysite-     images-         livestream-             helloworld.jpg     templates-         livestream-             helloworld.html 

this simplified version of site, idea.

my html code asks image:

<img src="../../images/livestream/helloworld.jpg" alt="helloworld" width="590" height="269"> 

when run django server returns:

[18/jul/2013 09:11:40] "get /livestream/images/livestream/helloworld.jpg http/1.1" 404 2605

does know how fix issue?

why don't set {{ static_url }} in settings, per docs point images folder , type in

<img src="{{ static_url }}livestream/helloworld.jpg" alt="helloworld" width="590" height="269"> 

this standard approach manage static files, , turn out useful in future well


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -