Re: dilemma with urls and templates

2009-10-13 Thread rvandam
I had to use {{ MEDIA_URL }} instead of {% MEDIA_URL %} (gave me a template error) Adding a template context processor was not option for me because for the static part i have no views/models defined. Thanks for the answer! I didnt think of solving it this way. Rob --~--~-~--~~-

Re: dilemma with urls and templates

2009-10-13 Thread Bayuadji
Hi, Imho there's a MEDIA_URL field in settings, so you could use that, and uset {% MEDIA_URL %} in your template (you could also add template context processors) -djibon- On 10/13/09, rvandam wrote: > > I am working on a site with a static part (i use the Djano tempate > system to separate men

dilemma with urls and templates

2009-10-13 Thread rvandam
I am working on a site with a static part (i use the Djano tempate system to separate menu's and header from the content), and a dynamic part. For the static part i have a directory structure like: index.html page1.html page2.html request for / will load index.html A part of my urls.py: (r