一直拖到寒假了...总算是入门了
还有一张图
也算Django入门
django install
django-admin startproject myproject
django-admin startapp blog
vim settings.py
app add--->blog
vim urls.py
url(r'blog/index/$','blog.views.index')
vim blog/views.py
from django.http import HttpResponse
def index(req):
return HttpResponse('<h1>hello</h1>')
python manager.py runserver
url:127.0.0.1:8000/blog/index
ps:相关软件
centos6.5
vm10.0
python2.6.6
Django-1.3.7
mySQL尚未安装
pps:linux不好玩