This feature is supported in Ultimate edition only.

The following is only valid when Python Plugin is installed and enabled!

In this section:

Prerequisite

Django framework and the corresponding Python interpreter are properly installed on your machine.

Supported versions of Django and Python

IntelliJ IDEA supports the latest Django versions ( e.g. 1.5 - 1.10).

The supported Python versions depend on the Django version. See What Python version can I use with Django?

Django support

Django support in IntelliJ IDEA includes:

Enabling or disabling django support

Django support can be turned on or off by attaching or detaching the Django facet .

To enable django support, follow these steps:
  1. Open project structure dialog.
  2. In the Modules node, select the desired module to which Django support should be added, and click images/add.png.
  3. Choose Django from the popup menu:

    images/django_support_for_a module.png

  4. Select the Django node under the module node

    images/django_support_for_a module1.png

    and specify the required parameters in the right-hand pane.