python run什么都没有,python manage.py runserver不显示任何内容

I used to work with django and I didn't face this problem in the past, Then I shifted for a while to Laravel ( and sure I changed a lot of things in the windows which I don't remember ).

and now when I hit python manage.py runserver .. nothing happen and the shell seems as it hanged . hover once I hit crt + C .the normal window suddenly appear that says :

You have 15 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. January 08,

2019 - 14:16:30 Django version 2.1.1, using settings

'django_project.settings' Starting development server at

http://127.0.0.1:8000/ Quit the server with CTRL-BREAK.

However I am able to go to http://127.0.0.1:8000/ and I have the welcome page of django with this line added enter image description here

It sounds crazy I know , please excuse me cause I am a newbie and thanx in advance

解决方案

Looks like you've to apply migrations.

You've just to run what he says:

python manage.py migrate

I think it's better to look at the documentation before you proceed: you've to understand how models work in Django.

Take a look to the documentation first.

And my advice is to follow the "first app" tutorial. Go here

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值