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/'




--~--~---------~--~----~------------~-------~--~----~
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