Are you doing images like this?

IMG(_src=URL('static','logo.png'), _alt="My Logo")

or

<img src="URL('static','logo.png')" alt="My Logo">


On Friday, November 9, 2012 7:20:03 PM UTC-8, Julien Courteau wrote:
>
> Hello All,
>
> The images of my home page didn't load if I try to access it with the 
> following URLs: 
>
>     "localhost:8000/"
>     "localhost:8000/mm/"
>
> but loaded fine with:
>
>     "localhost:8000/mm/default/" or
>     "localhost:8000/mm/default/index/"
>
> the name of my application being, of course, "mm" and my home page is 
> displayed by
> "default/index".
> In the console of Firebug I've got the following error message for each 
> images 
> of the home page (when I try to access it by "/" or "/mm") :
>
> "NetworkError: 404 NOT FOUND - http://127.0.0.1:8000/static/images/image.jpg";.
>
> My folder image is under: "~/web2py/applications/mm/static/images".
>
> It is a problem if I want to set deafult_application = "mm" (in routes.py)...
>
> Could you help me understand that situation?
>
> Thanks.
>

-- 



Reply via email to