In this section:
Supported versions of Django and Python
The supported Python versions depend on the Django version, for example:
- Django 1.8 supports Python interpreter 3.5.
- Django 1.7 supports Python interpreters from the version 2.7 up to the version 3.4.
- Django 1.6 supports Python interpreters from the version 2.6 up to the version 3.3.
Django support in IntelliJ IDEA includes:
- Dedicated project and module type.
- Ability to run the tasks of the
- Django templates support (syntax and error highlighting, code completion, navigation, completion for block names, resolve and completion for custom tags and filters, and quick documentation for tags and filters).
- Ability to create templates from usage.
- Ability to debug Django templates.
- Live templates (snippets) for the quick development of Django templates.
- Run/debug configuration for Django server.
- Navigation between views and templates.
- Code insight support for Django ORM.
- Code completion and resolve in
- Class-based views. IntelliJ IDEA provides Intention action to convert Django function-based generic views to class-based views.
- Generating model dependency diagrams for Django models.
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:
- Open project structure dialog.
- In the Modules node, select the desired module to which Django support should be added, and click .
- Choose Django from the popup menu:
- Select the Django node under the module node and specify the required parameters in the right-hand pane.
Last modified: 7 December 2016