> I'm obviously missing something basic. I'm 99% sure I should be able
> to say something like:
>
> <link rel="stylesheet" href="http://
> {{ static_content_domain_constant }}/styles/base.css" type="text/css"
> media="screen" />

Assuming you have SVN...

Make sure you have this enabled in your TEMPLATE_CONTEXT_PROCESSORS
(it is by default):
http://www.djangoproject.com/documentation/templates_python/#django-core-context-processors-media

Use RequestContext (generic views do automatically). It's made easy
with http://www.djangosnippets.org/snippets/3/

In your template, you'll have the {{ MEDIA_URL }} context variable
ready for your enjoyment (which will equal settings.MEDIA_URL)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to