Eclipse + pydev configure Django in Ubuntu

Source: Internet
Author: User

Emacs is used when the IDE is okay, but when the rad tool lacks some practical features, especially the intelliisense function. Since eclipse and Visual Studio can be set to the Emacs shortcut mode, it is decided to use this method to develop Django applications.

1) install eclipse and pydev
In Debian Linux, this is very simple. Due to the dependency, we only need to install pydev, and the remaining apt will be installed automatically.

Sudo apt-Get install eclipse-pydev

2) configure the python parser
Window> preferences> pydev> Interpreter: Select Python or Jython. If you select python, add/usr/bin/python to Python interpreters.

Add the package path to system pythonpath.

3) create a Django Project
Choose File> New> Project> pydev project.
Select the project path. Do not select "create default SRC folder ..."
Create a Django project anywhere

Django-admin.py startproject mysite

Transfers all created files to the project path. Right-click Refresh on the project name to view the new file.

4) configure the project path
Right-click Properties on the project name, select pydev-pythonpath, and add the project path to the project source folders.

5) running configuration
Choose run> run... from the menu to create a new running configuration in Python run. Select the project name and set main module to manage. py. Set arguments to runserver -- noreload

Related Article

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.