#如果运行上面命令出现以下提示 You have unapplied migrations; your app may not work properly until they are applied. Run 'python manage.py migrate' to apply them. #请先使用下面命令 python manage.py migrate #输出如下信息 Operations to perform: Apply all migrations: contenttypes, sessions, admin, auth Running migrations: Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying sessions.0001_initial... OK
运行成功后,会显示如下信息
1 2 3 4 5
System check identified no issues (0 silenced). December 21, 2014 - 08:56:00 Django version 1.7.1, using settings 'my_blog.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.
现在可以启动浏览器, 输入http://127.0.0.1:8000/, 当出现 It worked! Congratulations on your first Django-powered page