In this section:

Prerequisite

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

Supported versions of Django and Python

PyCharm supports the latest Django versions ( e.g. 1.5, 1.6, 1.7).

The supported Python versions depend on the Django version, for example:

  • 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 1.5 supports Python interpreters from the version 2.6 up to the version 3.2

Django support

Django support in PyCharm includes:

Enabling or disabling django support

Django support can be turned on or off by selecting/clearing the check box Enable Django support in the Django page.

To enable Django support, follow these steps:

  1. Open Settings/Preferences dialog, and click the page Django.
  2. Make sure that the check box Enable Django support is selected.
  3. Apply changes (if any) and close the dialog.