`

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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics