码迷,mamicode.com
首页 > 其他好文 > 详细

Install Django

时间:2015-08-10 19:33:07      阅读:140      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!