YOU, MY FRIEND, ARE THE MAN. I can't thank you enough. A tear almost ran down my cheek.
Kindest regards, Brandon On Feb 9, 1:29 pm, "Marty Alchin" <[EMAIL PROTECTED]> 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 uphttp://localhost:8000/site_media/my_image.jpgin your > browser, you'll > see the exact same thing ashttp://localhost:8000/. > > -Gul --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---