Build a Django Development Environment

Source: Internet
Author: User
Tags install django pip install django
The Django Project is a custom framework derived from an online news web site. It was released in the form of open source in 2005. Core Components of the Django framework include: object relationship ing used to create models, perfect management interface designed for end users, first-class URL design, designer-friendly template language, and cache system. To build a Django development environment, go to the Django official website. The dlownload directory shows you how to obtain Django. How to Get Django

Django is available open-source under the BSD license. It requires Python version 2.7 or higher, but it has no dependencies on other Python libraries. There are several ways you can get it:

Option 1. Get the latest official version

The latest official version is 1.7.1.

You can install it with PIP:

pip install Django==1.7.1
Option 2. Get the latest development version

The latest and greatest Django version is the one that's in our git repository (our revision-Control System). Get it using this shell command, which requires git:

git clone https://github.com/django/django.git

You can also download a zipped archive of the development version.

The following describes how to install Pip first. Pip is quite useful, not just Django.

Click the PIP link above to go to Pip's installion introduction document. The content is as follows.
Installationpython & OS support

PIP works with cpython versions 2.6, 2.7, 3.1, 3.2, 3.3, 3.4 and also pypy.

PIP works on Unix/Linux, OS X, and windows.

Note

Python 2.5 was supported through v1.3.1, and Python 2.4 was supported through v1.1.

Install Pip

To install or upgrade Pip, securely download get-pip.py. [1]

Then run the following (which may require administrator access ):

python get-pip.py 

If setuptools (or distriled) is not already installed,Get-pip.pyWill install setuptools for you.

Download the get-pip.py and run it. Pip is installed.

bowen:Downloads bowen$ sudo python get-pip.pyPassword:Downloading/unpacking pip  Downloading pip-1.5.6-py2.py3-none-any.whl (1.0MB): 1.0MB downloadedInstalling collected packages: pipSuccessfully installed pipCleaning up…

Then install Django Through PIP.

bowen:Downloads bowen$ sudo pip install Django==1.7.1Password:Downloading/unpacking Django==1.7.1  Downloading Django-1.7.1-py2.py3-none-any.whl (7.4MB): 7.4MB downloadedInstalling collected packages: DjangoSuccessfully installed DjangoCleaning up…

Enter

>>> import django>>> print django.VERSION(1, 7, 1, 'final', 0)>>> 

The installed Django version is correctly displayed, indicating that the Django framework has been installed.


Build a Django Development Environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.