WTFMongoengine

ภาพหน้าจอของซอฟแวร์:
WTFMongoengine
รายละเอียดซอฟแวร์:
รุ่น: 0.1.2
วันที่อัพโหลด: 15 Apr 15
ผู้พัฒนา: Orne Brocaar
การอนุญาต: ฟรี
ความนิยม: 0

Rating: 3.0/5 (Total Votes: 1)

WTFMongoengine เป็นโมดูลหลามที่สร้างเรียนแบบฟอร์ม WTForms จาก Mongoengine เอกสารวัตถุ & nbsp; ตัวอย่าง.
จาก mongoengine เอกสารการนำเข้าเขตข้อมูล
จากการนำเข้า wtfmongoengine.forms DocumentForm
ผู้ใช้ชั้น (document.Document):
& nbsp; first_name = fields.StringField (
& nbsp; verbose_name = 'ชื่อจริง'
& nbsp; max_length = 50,
& nbsp; ที่ต้องการ = True,
& nbsp;)
& nbsp; last_name = fields.StringField (
& nbsp; verbose_name = 'นามสกุล',
& nbsp; max_length = 50,
& nbsp; ที่ต้องการ = เท็จ
& nbsp;)
& nbsp; อีเมล์ = fields.EmailField (
& nbsp; verbose_name = 'E-mail address',
& nbsp; ที่ต้องการ = True,
& nbsp;)
UserForm ชั้น (DocumentForm):
& nbsp; ชั้น Meta:
& nbsp; document_class = ผู้ใช้
& nbsp; # ในกรณีที่คุณเพียงต้องการที่จะรวม `` first_name`` ในรูปแบบ
& nbsp; สาขา # = ('first_name',)
& nbsp; # ในกรณีที่คุณต้องการรวม `` email`` จากรูปแบบ
& nbsp; # ไม่รวม = ('อีเมล')

มีอะไรใหม่ ในข่าวประชาสัมพันธ์นี้:

  • แก้ไขพึ่งพา (wtforms เป็น ใน tests_require จำเป็นที่จะอยู่ใน install_requires).

ต้องการ

  • หลาม

ซอฟแวร์อื่น ๆ ของนักพัฒนา Orne Brocaar

django-i18nurls
django-i18nurls

14 Apr 15

ความคิดเห็นที่ WTFMongoengine

ความคิดเห็นที่ไม่พบ
เพิ่มความคิดเห็น
เปิดภาพ!