On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote:
>
> That's so obvious now that you point that out, I don't know how I
> could have missed that.  Really thanks a million Jay! it all works
> perfectly now.
>

Glad it worked for you. One last thing you might want to consider is
adding this to the top of urls.py:

from django.conf import settings

and changing the static part to this:

if settings.DEBUG:
    urlpatterns += patterns('django.views',
       (r'^static/(.*)$', 'static.serve', {'document_root': STATIC_LOC}),
    )


Because as you probably know, you should *not* use Django to serve
static media on a production site, let Apache do that for you. This
way, Django will serve the static media when in development mode (ie.
DEBUG=True), but you can let Apache do it when you set DEBUG=False

Jay P.

--~--~---------~--~----~------------~-------~--~----~
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