On 10 Sep 2006, at 16:52, Allan Henderson wrote:
> > Complete newbie problem here but i can't seem to get django to show > any images or stylesheets etc. > > In urls.py: > > (r'^images/(?P<path>.*)$', 'django.views.static.serve', > {'document_root': '/Users/whitebook/django/django_projects/mysite/ > media/images'}), > > In the template I have <img src="images/logo.gif">. > > So when opening up the site in Safari the dreaded blue question mark > appears where an image should be - opening the 'image' in a new tab > yields 'ViewDoesNotExist at images/logo.gif' > > Any suggestions? I've had a thorough search for a solution but > nothing seems to work. > > Thanks mine looks like this... (r'^media/(.*)$', 'django.views.static.serve', {'document_root': '/ Users/tomsmith/Desktop/django/bah/appname/media'}), --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---