django file serving issues
- by tipu
I have in my url patterns,
urlpatterns += patterns('',
(r'^(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/home/tipu/Dropbox/dev/workspace/search/images'})
In my template when I do
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style.css" />
It serves the css just fine. But the file logo.png, that's in the same directory as style.css, doesn't show when I do this:
<img src = "{{ MEDIA_URL }}logo.png" id = "logo" />
Any idea why?