Hi,
I have a problem with serving static images with
django.views.static.serve from urls defined in css file.
Everything works ok when an image is served by <img src> tag in the
html (<img src="site_media/images/img5.jpg" />), but it doesn't work
when the link to the same image is in a css file (url(site_media/
images/img5.jpg)). The css file itself is served, and the css syntax
is correct.
To serve media I use the urls.py file pattern:
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': 'C:/Projects/djtest/djtest/site_media',
'show_indexes': True}),
I'm new in django, so probably I'm missing something. Or not.
Thanks in advance for any suggestions!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---