Closed pije76 closed 11 years ago
Get exception:
MultiValueDictKeyError at /admin/elephantblog/entry/add/ "Key 'template_key' not found in ..................................................................................
MultiValueDictKeyError at /admin/elephantblog/entry/add/
"Key 'template_key' not found in ..................................................................................
when add new entry with following model:
Entry.register_templates({ 'key': 'base', 'title': _('Blog template'), 'path': 'entry_detail.html', 'regions': ( ('main', _('Main content area')), ('sidebar', _('Sidebar'), 'inherited')), } )
Did you add Entry.register_templates after you did syncdb? If so, you have to add the field template_key manually.
template_key
Get exception:
when add new entry with following model: