码迷,mamicode.com
首页 > 其他好文 > 详细

Django-form組件

时间:2017-11-08 17:38:23      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:git   imp   show   get   har   自定义   rms   from   bin   

models.py

1
2
3
4
5
6
7
8
9
10
from django.db import models
 
class UserInfo(models.Model):
    username = models.CharField(max_length=32)
    email = models.EmailField(max_length=32)
 
    def __str__(self):
        return self.username
 
# 注意:依赖models中的str方法
 
 

Django-form組件

标签:git   imp   show   get   har   自定义   rms   from   bin   

原文地址:http://www.cnblogs.com/zhangningyang/p/7804547.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
分享档案
周排行
mamicode.com排行更多图片
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!