List Info

Thread: unable to display images




unable to display images
country flaguser name
United States
2007-10-22 21:55:26
Sorry for this repeat post - but i am getting quite
desperate and be
very thankful for some help...

I am unable to display images directly through Apache - with
the
following configuration.Can someone please help. Much
thanks!

the line in my base html reads the following
     <p><a href="/"><img src
="/static/images/Contact1.png"
width="85"
ALT ="contact"/></a></p>

my media_url is set to /static/
and the htpd.conf reads the following

<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE myapp.settings
    PythonDebug On
</Location>

<Location "/media/">
        SetHandler None
    </Location>
Alias /media/ 
"C:/Python25/Lib/site-packages/django/contrib/admin/
media/"
<Directory
"C:/Python25/Lib/site-packages/django/contrib/admin/
media/">
       Order deny,allow
       Allow from all
 </Directory>

<Location "/static/">
        SetHandler None
 </Location>
Alias /static/  "C:/myapp/static/"
<Directory "C:/myapp/static/">
       Order deny,allow
       Allow from all
</Directory>


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


Re: unable to display images
country flaguser name
Poland
2007-10-23 07:48:34
On Tuesday 23 October 2007 04:55:26 Anurag wrote:
> Sorry for this repeat post - but i am getting quite
desperate and be
> very thankful for some help...
>
> I am unable to display images directly through Apache -
with the
> following configuration.Can someone please help. Much
thanks!


What is the problem? Does pictures are still serving by
django? Try to get 
http://yo
userver/static/images/Contact1.png and
http://youserver/static/


then paste here first lines of output...

> the line in my base html reads the following
>      <p><a href="/"><img src
="/static/images/Contact1.png"
width="85"
> ALT ="contact"/></a></p>
>
> my media_url is set to /static/
> and the htpd.conf reads the following
>
> <Location "/">
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE myapp.settings
>     PythonDebug On
> </Location>
>
> <Location "/media/">
>         SetHandler None
>     </Location>
> Alias /media/ 
"C:/Python25/Lib/site-packages/django/contrib/admin/
> media/"
> <Directory
"C:/Python25/Lib/site-packages/django/contrib/admin/
> media/">
>        Order deny,allow
>        Allow from all
>  </Directory>
>
> <Location "/static/">
>         SetHandler None
>  </Location>
> Alias /static/  "C:/myapp/static/"
> <Directory "C:/myapp/static/">
>        Order deny,allow
>        Allow from all
> </Directory>
>
>
> -- 
Rafał bluszcz Zawadzki
http://my.jabberpl.org
- use jabber
http://bluszcz.jogger.pl
- my blog
http://glam.pl - buy secondhand
clothes
http://dkf.glam.pl -
domorosły krytyk filmowy

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


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )