Try changing your directory (and paths) to something like myapp_media
instead of media. Media is used by the admin interface for the css / js
files there, which is why it is getting confused.

Em 

> -----Original Message-----
> From: django-users@googlegroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of reyjexter
> Sent: 10 July 2008 16:37
> To: Django users
> Subject: problem serving image [ERROR: Page not found: 
> /usr/lib/python2.5/site-packages/djangotrunk/django/contrib/ad
> min/media/amazon.gif]
> 
> 
> I tried following the documentation but I cant seem to serve an image.
> I'm getting this error:
> 
> ERROR: Page not found: /usr/lib/python2.5/site-packages/djangotrunk/
> django/contrib/admin/media/amazon.gif
> 
> when trying to browse http://localhost:8080/amazon.gif
> 
> I run the server using this:
> 
> ./manage.py runserver localhost:8080
> 
> this is my urls.py:
> 
> from django.conf.urls.defaults import *
> from django.conf import settings
> 
> urlpatterns = patterns('',
> 
>     (r'^media/(.*)$', 'django.views.static.serve', 
> {'document_root': '/ home/user/workspace/mysite/media/'}),
> 
> )
> 
> 
> and this is my MEDIA and MEDIA_URL:
> 
> MEDIA_ROOT = '/home/user/workspace/mysite/media/'
> MEDIA_URL = 'http://localhost:8080/media/'
> 
> 
> 
> 
> > 
> 

-- 
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium.  Thank you.



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to