相关疑难解决方法(0)

列出表中的字段

有没有办法列出django模型中表格中的字段

 class Profile(models.Model):
    user = models.ForeignKey(User, unique=True)
    name = models.ForeignKey(School)
    emp = models.ForeignKey(User, unique=True)
Run Code Online (Sandbox Code Playgroud)

如何列出表Profile中的字段名称,(就像desc Profile;在mysql中)

谢谢.

python django

11
推荐指数
1
解决办法
1万
查看次数

标签 统计

django ×1

python ×1