On 6/13/06, ChrisW <[EMAIL PROTECTED]> wrote:
> I also noticed that the djangoproject webistes templates are full of
> absolute hrefs to stylesheets and other *media*. Does anyone else think
> this is a bad idea?

Why is it a bad idea to have a site's templates reference that site's
stylesheets and media?

If anything, this should be a fairly common case on Django-powered
sites, because the preferred setup is to use Apache/mod_python for
parts of the site powered by Django and a different web server for
media files like images and stylesheets, possibly even on a different
domain (e.g., main site is example.com, media is media.example.com);
in that case, absolute URLs are a plain necessity -- there's no way to
create a relative URL that leads to a resource on a different domain.

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

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