login.Avatar: (models.W042) Auto-created primary key used when not defining a primary key type, by default ‘django.db.models.AutoField’.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the LoginConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. ‘django.db.models.BigAutoField’.
问题出在于
django.db.models.AutoField
解决方案:在settings.py文件中添加下面这句
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
重启之后,就正常了