django -- 自定义数据库表的表名
from django.db import models
class UserModel(models.Model):
username = models.CharField(max_length=100, default="", verbose_name=u"用户名")
password = models.CharField(max_length=100, default="", verbose_name=u"密码")
class Meta:
db_table = "userprofile"