Did you try:

Alias /smedia /home/user/media

On Fri, Apr 23, 2010 at 2:15 PM, Kenneth Gonsalves <law...@au-kbc.org>wrote:

> hi,
>
> using django trunk on svn and the latest ubuntu with python 2.6. The setup
> is
> this:
>
> MEDIA_ROOT = /home/user/media/
> MEDIA_URL = http://mysite/smedia/
> apache has:
> Alias /smedia/ /home/user/media/
>
> the uloaded file is in /home/user/media/images/pic.jpg
>
> apache cannot find the file. Page source shows the file as
> http://mysite/smedia/images/pic.jpg
>
> but the apache error log shows:
> /home/user/mediaimages/pic.jpg not found - note that the '/' between
> 'media'
> and 'images' is missing. What can be the cause of this error?
>
> --
> regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS
> http://certificate.nrcfoss.au-kbc.org.in
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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