Wednesday, August 17, 2011

How to load data from local static path in templates (security error)

Hi it seems I cant access data from local static paths such as c:\\somefolder\somefile.gif in my templates when I enter the url
the code for my template is simplified to something like this

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>Demo</title>
    </head>
    <body>
        <img src="file:///c:/bender.gif" />
    </body>
</html>

The title change to Demo. which shows that the page has loaded but
I get the error in firefox saying:
Security Error: Content at http://127.0.0.1:8000/db/ may not load or link to file:///c://bender.gif

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate