How to install django?
I have installed python 2.7 and ran the setup.py it executed various commands on command prompt but how can i see tha face of django i don't know what n开发者_Python百科ext step is. Whether i should have to set the path or not and how can i start the framework after setting the path. Thanks in advance.
For installing django you should use python setup.py install
After it if you're using Windows you should add django-admin.py
to your system path. On Linux this is done automatically. (You may choose not to do this if you don't want, but then you have to specify path to django-admin.py
everytime you use it.)
When you want to start some project, just go to the destination folder and run django-admin.py startproject myprojectname
(or, probably python django-admin.py startproject myprojectname
on Windows).
Consult these...
http://www.djangoproject.com/download/
http://docs.djangoproject.com/en/dev/intro/install/
http://docs.djangoproject.com/en/dev/intro/tutorial01/
..in that order. The first two links are installation guides, the third link is the first part of the "official" Django tutorial. It's pretty nifty, so I'd recommend you work through it.
精彩评论