Hi Malcom,

So you mean something like this:

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^images/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/var/www/vhosts/opentelcom.org/openbilling/media'}),
    )

and then in my template i can refer to an image as follows:

<div align="left"><img src="/images/logo.gif" width="200" height="40"
/></div>


where the full path to the image is:
/var/www/vhosts/opentelcom.org/openbilling/media/images/logo.gif


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to