Re: using templates for javascript files

2008-05-13 Thread Alex Morega
On May 13, 2008, at 08:43 , MrJogo wrote: > > I'd like my javascripts to know MEDIA_URL so they can pull pictures > from there (for a slideshow) and I was wondering the best way of doing > this. > > I figure the best way would be to create one javascript file that goes > through the Django templ

using templates for javascript files

2008-05-12 Thread MrJogo
I'd like my javascripts to know MEDIA_URL so they can pull pictures from there (for a slideshow) and I was wondering the best way of doing this. I figure the best way would be to create one javascript file that goes through the Django templating and makes a variable available for the other script