Hi,

I'm testing Django locally and I've added the line:
(r'^projectprofiler/media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/projectprofiler/media/'}),
to urls.py as it is mentioned to do so here (http://
www.djangoproject.com/documentation/static_files/).  Note: The path to
the file on the site is the same as it is locally.

The browser is now being directed to the correct place, but I'm still
getting a 404 even though the path to the directory is exactly
correct:

Request URL:    http://127.0.0.1:8000/projectprofiler/media/MochiKit.js
"/projectprofiler/media/MochiKit.js" does not exist

Any idea why it may not be finding this?

Any help would be much appreciated.
Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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