Install Django

1.downloadpython2.7,installtoc:\python27

2.downloadDjango-1.9.2newestrelase:https://www.djangoproject.com/download/

3.unziptoc:\Django-1.9.2

4.copyc:\Django-1.9.2\djangotoc:\python27\django

5.runcommand:pythonc:/Django-1.9.2/setup.pyinstall

6.afterfinished,trycommandinpythonconsole:

importdjango

print(django.get_version())

7.ifitisOK,theninstallsuccessfully

butyoumayencountererrorwhenyourun:pythonmanage.pyrunserver

Error1:nosuchfileordictory:...\\common-passwords.txt.gz

Resolution:Foundacopyhere: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:Notranslationfilesfoundforthedefaultlanguageen-US

Resolution:changeUSE_I18N=False

Referring:http://stackoverflow.com/questions/31726723/no-translation-file-found-for-domain-django

相关推荐