新建 Django 项目的时候  后台运行会出现一些报错的一些英文句子,但不影响运行。

 

句子是:

You have 14 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.
February 14, 2019 - 11:13:41
Django version 2.0.4, using settings 'kaoshi.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

    

  

 

解决方法:执行一下这个:python manage.py migrate 

     它可以让我们在修改Model后可以在不影响现有数据的前提下重建表结构。

 

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2021-12-30
  • 2021-08-10
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2021-04-14
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-11-16
  • 2021-09-12
相关资源
相似解决方案