I agree with Marty: your static URL pattern is never being used. And the log file snippet you gave had the big clue in it:
[09/Feb/2008 11:58:42] "GET / HTTP/1.1" 200 39 [09/Feb/2008 11:58:42] "GET /site_media/my_image.jpg HTTP/1.1" 200 39 The key thing here is the "39". That's the number of bytes served, and you can see that both URLs returned the same number of bytes, a strong clue that both URLs were handled by the same view. Another diagnostic technique is to put the URL directly into your browser rather than relying on the <img> tag to retrieve it. That would have shown that the image URL was in fact returning HTML. One more thing: Use firebug if you can. It's a great developer tool, and could show you the result of the img retrieval. --Ned. http://nedbatchelder.com/blog Marty Alchin wrote: > On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > >> Any way, here is my current urls.py document: >> >> from django.conf.urls.defaults import * >> from django.conf import settings >> from btaylor_design.views import home >> >> urlpatterns = patterns('', >> (r'', home), >> ) >> > > Don't bother reading any further than this. Your problem begins before > you even get into static file serving. Your regular expression here is > empty, which means it will *always* match *everything* regardless of > what else you specify after the fact. > > If, as I suspect, this is supposed to just serve requests to the > domain's root, you'll want to change it to the following: > > (r'^$', home), > > That will make sure it matches *just* the root, rather than matching > everything in sight. You see, Django was hitting this and serving it > up, without even looking for any other url patterns. In fact, I'll > wager that if you fire up > http://localhost:8000/site_media/my_image.jpg in your browser, you'll > see the exact same thing as http://localhost:8000/. > > -Gul > > > > > -- Ned Batchelder, http://nedbatchelder.com --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---