This article briefly describes the installation and development of the django framework for python, one of the most popular programming languages.
Django in Win7 under the installation and creation of the project hello word, relatively speaking, very simple, here directly give the command and code, do not understand can consult the relevant information.
1. Installation:
The commands are as follows:
pip install Django==1.6.5
2、Create project
startproject web
modifications
url(r'^blog/index/$',''),
3. Creation of the project:
startapp blog
Modification: /blog/
Add:
from import HttpResponse def index(req): return HttpResponse("hello world");
4. Starting the self-contained server
python runserver
Visit the page:
http://127.0.0.1:8000/blog/index/