Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\records\manage.py", line 21, in
main()
File "C:\Users\Administrator\Desktop\records\manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management_init.py", line 381, in execute_from_command_line
utility.execute()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management_init.py", line 357, in execute
django.setup()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\django_init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\django\apps\registry.py", line 114, in populate
app_config.import_models()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\django\apps\config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 855, in exec_module
File "", line 228, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\records\myapp\models.py", line 13, in
class Xq(models.Model):
File "C:\Users\Administrator\Desktop\records\myapp\models.py", line 16, in Xq
addtime = models.DateTimeField(dafault=datetime.now) #时间
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\models\fields_init.py", line 1166, in init
super().init(verbose_name, name, **kwargs)
TypeError: init() got an unexpected keyword argument 'dafault'
Django生成迁移文件 生成不了提示:TypeError: __init__() got an unexpected keyword argument 'dafault'
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
悬赏问题
- ¥15 魔霸ROG7 pro,win11.息屏后会显示黑屏,如图,如何解决?(关键词-重新启动)
- ¥15 有没有人知道这是哪里出了问题啊?要怎么改呀?
- ¥200 C++表格文件处理-悬赏
- ¥15 Windows Server2016本地登录失败
- ¥15 复合卡卡号轨道写入芯片卡
- ¥20 基于MATLAB的TDOA
- ¥15 为啥输入字体突然变了
- ¥20 已知坐标,换成MATLAB可以用的数据
- ¥15 这个python五子棋代码的每一句意思是什么啊
- ¥15 求一段隐藏代码,隐藏一些内容