media-url

django: ImageField, MEDIA_ROOT, MEDIA_URL, how to set correctly

How should MEDIA_ROOT and MEDIA_URL be set correctly in context of ImageField? How should I set upload_to parameter for an ImageField? Comments for MEDIA_ROOT and MEDIA_URL are scarce, so I would like to know, what are they used for and how to set them correctly. ...

Django {{ MEDIA_URL }} blank

I have banged my head over this for the last few hours. I can not get {{ MEDIA_URL }} to show up in settings.py .. MEDIA_URL = 'http://10.10.0.106/ame/' .. TEMPLATE_CONTEXT_PROCESSORS = ( "django.contrib.auth.context_processors.auth", "django.core.context_processors.media", ) .. in my view i have from django.shortcuts import ren...