Install Django

1. download python2.7,install to c:\python27
2. download Django-1.9.2 newest relase : https://www.djangoproject.com/download/
3. unzip to c:\Django-1.9.2
4. copy c:\Django-1.9.2\django to c:\python27\django
5. run command: python c:/Django-1.9.2/setup.py install
6. after finished, try command in python console:
import django
print (django.get_version())
7. if it is OK, then install successfully

but you may encounter error when you run : python manage.py runserver

Error1: no such file or dictory: ...\\common-passwords.txt.gz
Resolution: Found a copy here: http://pkgs.fedoraproject.org/repo/pkgs/cracklib/common-passwords.txt.gz/5e35a78582c233f8b703f1dabf264788/
Referring: http://stackoverflow.com/questions/30815858/no-such-file-or-directory-error-when-using-pythons-startapp-in-cygwin

Error2: IOError: No translation files found for the default language en-US
Resolution: change USE_I18N = False
Referring: http://stackoverflow.com/questions/31726723/no-translation-file-found-for-domain-django
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值