django之创建第1个项目并查看网页效果

1、c盘下创建djangoweb文件夹

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

2、C:\Users\Administrator>cd c:\\python27
3、c:\Python27>cd c:\\djangoweb

#切换到djangoweb目录下之后创建项目
4、c:\djangoweb>django-admin.py startproject helloworld

#切换到项目目录下
5、c:\djangoweb>cd helloworld

#启动运行并查看网页效果
6、c:\djangoweb\helloworld>manage.py runserver
Validating models...

0 errors found
April 04, 2016 - 17:40:51
Django version 1.5.12, using settings 'helloworld.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[04/Apr/2016 17:41:04] "GET / HTTP/1.1" 200 1961

网页效果:

posted @ 2016-04-04 17:45  Xiao|Deng  阅读(284)  评论(0编辑  收藏  举报