Hello all,

I know theres alot of threads like this out there but I'm still
struggling. I've got a simple html template which i access through a
view:

<html><body>
<img src='/media/feedicon.png'>
</body></html>

the template is in C:/Program Files/Apache2.2/htdocs/akonline/
templates/blogSite
and the image is then in blogSite/media

then in my conf I have:

<Location "/akonline/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE akonline.settings
    PythonOption django.root /akonline
    PythonDebug On
    PythonPath "['C:/Program Files/Apache2.2/htdocs'] + sys.path"
</Location>

<Directory "C:/Program Files/Apache2.2/htdocs/akonline/templates/
blogSite/media/">
        Order Allow,Deny
        Allow from all
        SetHandler None
</Directory>

Alias /media/ "C:/Program Files/Apache2.2/htdocs/akonline/templates/
blogSite/media/"

<LocationMatch "\.(jpg|gif|png|css)$">
        SetHandler None
</LocationMatch>

I'm using mod_python and Windows XP, I have the same setup (with
different locations and directories) on my linux host and it works
fine. So whats going on. I would be grateful for any help.

Thank you,

Andrew

PS. I know your not supposed to put your project in htdocs but this is
just on my PC so there aren't any security issuses.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to