By default django does not serve those files for you. MEDIA_ROOT is a value
for where uploaded media is stored (and other media too) and MEDIA_URL is
its peer, telling it where to link (over HTTP) for the files in MEDIA_ROOT.
If you want the internal development server to serve the media files
i visit http://127.0.0.1:8000/media/image/post-jg.gif
and return Page not found:
C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django/contrib/admin/media\image/post-jg.gif
my project locates D:\project\rankba\,and set MEDIA_ROOT =
'D:\\project\\rankba\\media' in settings.py
2 matches
Mail list logo