目录
问题
今天在树莓派上创建Django项目运行服务的时候显示如下报错
pi@Pi3B:~/Myproject/Mysite $ python manage.py runserver 0.0.0.0:8000
Performing system checks...
System check identified no issues (0 silenced).
You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
October 21, 2020 - 02:45:07
Django version 1.11.29, using settings 'Mysite.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
解决方法
Ctrl+C 结束掉服务输入下面的命令进行数据重构
python manage.py migrate
此时再次运行服务就正常了
文章评论