辞書でコンテキストを渡してて気付いたのだが、render_to_responseだとTEMPLATE_CONTEXT_PROCESSORSのコンテキストがテンプレートに渡されていない気がする。
def index(request): return render_to_response('index.html', {'mycontext': 'context'})
これだとMEDIA_URLなどが空になった。
汎用ビューのdirect_to_templateでextra_contextに拡張コンテキストを辞書として渡したほうがいいかもしれない。
def index(request): return direct_to_template(request, 'index.html', extra_context={'mycontext': 'context'})