# 本地
python manage.py runserver
# 服务器
python3 manage.py runserver
townbase.pageStatic: (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 TownbaseConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
default_auto_field = 'django.db.models.AutoField'
id = models.BigAutoField(primary_key=True)
# 本地
python -Wa manage.py test
# 服务器
python3 -Wa manage.py test
有一种病很容易恶化,它叫“你想太多”。
System check identified no issues (0 silenced).
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
此页面不支持夜间模式!
已进入夜间模式!
已进入普通模式!
搜索框不允许为空
签到成功!经验+5!芋圆币+2!
签到失败!今日已签到!
需要登录社区账号才可以进入!