feincms / feincms-elephantblog

A blog for FeinCMS
feinheit.ch/labs/
BSD 3-Clause "New" or "Revised" License
42 stars 38 forks source link

MultiValueDictKeyError at /admin/elephantblog/entry/add/ #25

Closed pije76 closed 11 years ago

pije76 commented 11 years ago

Get exception:

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')),
        }
    )
sbaechler commented 11 years ago

Did you add Entry.register_templates after you did syncdb? If so, you have to add the field template_key manually.