可以用Linux自带的Python,安装的大概内容如下:
1.django install
2.django-admin stratproject csvt01
3.django-admin startapp blog
4.vim settings.py
app add 下面-->'blog'
5.vim urls.py
url(r'blog/index/$','blog.views.index')
6.vim blog/views.py
from django.http import HttpResponse
def index(req):
return HttpResponse('<h1>hello world to Django</h1>)
7 python manager.py runserver
url :127.0.0.1:8000
8.在浏览器里输入127.0.0.1:8000/blog/views.py,就会显示“hello world to Django"