On Tue, Feb 10, 2009 at 7:40 PM, djandrow <andrewkenyon...@gmail.com> wrote: > > 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.
Problem with this is how doas Apache what rule should it apply when it come to server something under /akonline or /media The one set by the DocumentRoot C:/Program Files/Apache2.2/htdocs directive ? or the one set by the Alias or Location blocks/directives above?. It is really better for you and for anybody trying to help you if you follow some basic common sense practices because it isn't very practical having to set up a test Django app under one's Apache document root just to reproduce your setup. -- Ramiro Morales --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---