Thanks everyone, the problem was indeed not using the RequestContext, using Context does not automatically include some useful variables which are retrieved from TEMPLATE_CONTEXT_PROCESSORS that includes MEDIA_URL as stated above.
Thanks again! On Dec 28, 5:31 pm, dmitry b <dmitry.ma...@gmail.com> wrote: > you need to be also using RequestContext in your view instead of the > regular Context. What does your view method's return statement look > like? > > On Dec 28, 7:02 am, Lee Connell <lee.a.conn...@gmail.com> wrote: > > > > > > > > > I didn't have TEMPLATE_CONTEXT_PROCESSORS at all, I copied the code > > and it did not help, MEDIA_URL is still blank. I am using django 1.2.1 > > on windows. > > > On Dec 28, 12:56 am, Kenneth Gonsalves <law...@thenilgiris.com> wrote: > > > > On Mon, 2010-12-27 at 08:03 -0800, easylancer wrote: > > > > TEMPLATE_CONTEXT_PROCESSORS = ( > > > > 'django.contrib.auth.context_processors.auth', > > > > 'django.core.context_processors.debug', > > > > 'django.core.context_processors.i18n', > > > > 'django.core.context_processors.media', > > > > 'django.contrib.messages.context_processors.messages', > > > > 'django.core.context_processors.request', > > > > ) > > > > actually only 'request' is not there - the others are present by default > > > -- > > > regards > > > KGhttp://lawgon.livejournal.com > > > Coimbatore LUG roxhttp://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.