[Django] Setting up Django development environment in Ubuntu 14.04

Source: Internet
Author: User
Tags install django pip install django

1. Python

Of course you'll need Python. Still Python 2.7 is preferred, however if you would like to create new projects with Python 3, it's also fine to do.

Newest Python could is downloaded from https://www.python.org/downloads/

2. Pip

It's a very powerful tool for installing and managing Python packages. We could use Pip to install Django also. To install PIP in Ubuntu 14.04, (To upgrade PIP: pip install-u pip)

sudo apt-get install Python-pip

3. Installing Django

It'll be very convenient and easy-to-install Django with the help of PIP. Simply use:

sudo pip install django==1.7

(Refer to Www.djangoproject.com/download for more details) Here we install the newest Django 1.7 for our projects.

4. IDE

It's optional to prepare a IDE for web development using Django, you could purely use the text editors like Vim and Commandlin E to complete all your development. However I would recommend to use a IDE for the ease of life. There is recommended IDEs:

    • Pycharm (http://www.jetbrains.com/pycharm/)

For Pycharm it have a free community version for Python projects development, also if either pay or contribute for a s Tandard Edition which supports integrated Django development.

    • Aptana (http://www.aptana.com)

Aptana is a free IDE which are an extension of the Eclipse with PyDev dedicated for WEB development. It is completely free and I am currently use it.

Installing Aptana

To the install Aptana 3 in Ubuntu, the directly download it from the IT official website, and use the Deb file to install. (Note:it is not recommended to use the newest version, which have some annoying bugs so you need to attend. Refer to this thread.)

Configuring Aptana

The perspective to PyDev for Django development. (Note:there is a known bugs for PyDev, so you'll have to create and keep an empty PyDev project in your workspace to E Nable yourself creating Django projects with PyDev.)

Setting up Python Interpreter5. Git

It is important to make your codes and resources version-controlled if you be in a team or building up a complex system.

[Django] Setting up Django development environment in Ubuntu 14.04

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.