On 9/16/07, Florian Lindner <[EMAIL PROTECTED]> wrote: > This template is used within different paths. Therefore I need to have the > styles.css availabe in every path the template could be used. > An alternative would be give the entire URL href="http://xgm.de/styles.css. > But then I need to change that line everytime when I deploy my app from > localhost to a domain.
The 'media' context processor, which is enabled by default and adds the value of the 'MEDIA_URL' setting to every RequestContext. Copy/pasting from my base template: <link rel="stylesheet" href="{{ MEDIA_URL }}css/b-list-20070904.css" type="text/css" /> -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---