def posts_create(): print dir(request.POST) post = Post() post.build(request.POST) try: post.validate() post.save() redirect('/') except mongoengine.ValidationError, e: return New(post, e).render()