chujunchao999
2021-06-28 22:17
File "C:\Users\cjc\PycharmProjects\pythonProject3\demo\blog\models.py", line 4, in <module>
class Article(models.Model):
File "C:\Users\cjc\PycharmProjects\pythonProject3\demo\blog\models.py", line 6, in Article
article_id = models.AutoField(Primary_key=True)
File "C:\Users\cjc\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\models\fields\__init__.py", line 2455, in __init__
super().__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'Primary_key'
primary_key
在本地上怎么运行起来哦
三小时带你入门Django框架 新版上架
25587 学习 · 248 问题
相似问题