巴索罗米·杰

I hear – and I forget; I see – and I remember; I do – and I understand!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

1、确保Django已安装成功,若有问题。参考:http://www.cnblogs.com/s1099312273/p/3289057.html

2、进入终端中,新建一个django项目

django-admin.py startproject mysite

3、进入mysite目录

4、启动Django自带的web服务器

python manage.py runserver

5、浏览器中打开地址http://127.0.0.1:8000/

It worked!

Congratulations on your first Django-powered page.

Of course, you haven't actually done any work yet. Here's what to do next:

  • If you plan to use a database, edit the DATABASES setting in mysite/settings.py.
  • Start your first app by running python mysite/manage.py startapp [appname].

You're seeing this message because you have DEBUG = True in your Django settings file and you haven't configured any URLs. Get to work!

posted on 2013-08-29 17:20  SeeGo  阅读(257)  评论(0)    收藏  举报