💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
- 创建模型 ~~~ from __future__ import unicode_literals from django.db import models class Arttcle(models.Model): title = models.CharField(max_length=32, default="title") content = models.TextField(null=True) pub_time = models.DateTimeField(null=True) def __unicode__(self): return self.title ~~~ - 生成数据表 - python manage.py makemigrations - python manage.py migrate