wtfmongoengine. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Orne Brocaar
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://brocaar.com
wtfmongoengine. ű×
wtfmongoengine. ¼³¸í
WTFMongoEngineÀº MongoEngine ¹®¼ °³Ã¼¿¡¼ WTForms ¾ç½Ä Ŭ·¡½º¸¦ ¸¸µå´Â Python ¸ðµâÀÔ´Ï´Ù. ¿¹ : MongoEngine °¡Á® ¿À±â ¹®¼, fieldsFrom wtfmongoengine.forms documentFormClass »ç¿ëÀÚ (document.document) : first_name = fields.stringfield (verbose_name = 'À̸§', max_length = 50, Çʼö = true) last_name = fields.stringfield (verbose_name = '¼º', max_length = 50, Çʼö = false,) Email = fields.Emailfield (verbose_name = 'ÀüÀÚ ¸ÞÀÏ ÁÖ¼Ò', Çʼö = true) Ŭ·¡½º userForm (documentForm) : Ŭ·¡½º ¸ÞŸ : document_class = »ç¿ëÀÚ # Æû # Çʵå = ( 'first_name',) #``email``¿¡¼``email` '¿¡¼```email``¿¡¼`````'```first_name``¸¦ Æ÷ÇÔ½ÃÅ°°í ½Í´Ù. Á¦Ç°ÀÇ È¨ÆäÀÌÁö
wtfmongoengine. °ü·Ã ¼ÒÇÁÆ®¿þ¾î