Re: Grabbing values from project settings

2006-03-25 Thread Ivan Sagalaev
mateja wrote: >As you can see, I load the mediaurl filter, and then inject the >media_url value. My question is, is this the right way to do this? > One of the ways, at least. I'm doing it another way using context processor to populate template's context with selected values from settings tha

Grabbing values from project settings

2006-03-25 Thread mateja
Hey all, I've configured django with Apache and mod_python, and I have Apache serving static media. If all media is to have a MEDIA_URL prefix, how do I grab this value out of the project settings? Currently, my solution is to write a filter, like so: in myproject/myapp/templatetags/mediaurl