Adam Fraser wrote:
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
type "ls /projectprofiler/media/MochiKit.js" I'm suspecting that "projectprofiler" isn't a directory off / You need to supply the full path. Jeff Anderson
signature.asc
Description: OpenPGP digital signature

