2012-04-11から1日間の記事一覧
適当なcontext processorを書いて(例えばこんなの) def hoge(request): return { 'foo': 'apple', 'bar': 'orange' } settingsに TEMPLATE_CONTEXT_PROCESSORS = TEMPLATE_CONTEXT_PROCESSORS + ('path.to.module.context_processors.hoge',) こんなの書い…
適当なcontext processorを書いて(例えばこんなの) def hoge(request): return { 'foo': 'apple', 'bar': 'orange' } settingsに TEMPLATE_CONTEXT_PROCESSORS = TEMPLATE_CONTEXT_PROCESSORS + ('path.to.module.context_processors.hoge',) こんなの書い…