首页 > 其他 > 详细

Install Django

时间:2015-08-10 19:30:08      阅读:144      评论:0      收藏:0      [点我收藏+]

refrence: https://docs.djangoproject.com/en/1.8/intro/install/

Install Django

You’ve got three easy options to install Django:

  • Install a version of Django provided by your operating system distribution. This is the quickest option for those who have operating systems that distribute Django.
  • Install an official release. This is the best approach for most users.
  • Install the latest development version. This option is for enthusiasts who want the latest-and-greatest features and aren’t afraid of running brand new code. You might encounter new bugs in the development version, but reporting them helps the development of Django. Also, releases of third-party packages are less likely to be compatible with the development version than with the latest stable release.

Always refer to the documentation that corresponds to the version of Django you’re using!

If you do either of the first two steps, keep an eye out for parts of the documentation marked new in development version. That phrase flags features that are only available in development versions of Django, and they likely won’t work with an official release.

for unix:

$sudo apt-get install python-django
~$mkdir django-web
~$virtualenv django-web
~$. django-web/bin/active
(django-web)cc@debian:~$pip install Django

Verifying

To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django:

>>> import django
>>> print(django.get_version())
1.8.3

You may have another version of Django installed.

Install Django

原文:http://www.cnblogs.com/BugQiang/p/4718653.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!