开发者

Trouble installing Django

I'm having trouble installing Django, even if I follow the instructions here: http://www.djangobook.com/en/2.0/chapter02/

Could someone please provide baby steps to installing Django. I'm talking baby steps that really break it down, so that a retarded person could do it.

I've installed Django and unzipped the file, but I'm unsure where to go from there.

I on Windows 7, and I've downloaded Python 2.7 and Django 1.2.1开发者_如何学JAVA.


OK. If you have Python installed, you can then proceed to execute setup.py given with Django. Head over to the directory where you unzipped Django.

cd C:\path\to\Django\

You can now execute

python setup.py install

This step requires your python executable to be present in the system's PATH environment variable. If it isn't you will have to append your Python installation directory to your PATH.

Update

You can verify that the installation has gone well with the following command. Run python and execute the command import django. If no import errors are thrown everything is OK. Thanks to cji for the tip.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜