PyCharm 2024.1 Help

Django support

Enable the Django plugin

This functionality relies on the Django plugin, which is bundled and enabled in PyCharm by default. If the relevant features aren't available, make sure that you didn't disable the plugin.

  1. Press Ctrl+Alt+S to open settings and then select Plugins.

  2. Open the Installed tab, find the Django plugin, and select the checkbox next to the plugin name.

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. The corresponding Python versions depend on Django. See What Python version can I use with Django?

Django support

Django support in PyCharm includes:

Enabling or disabling Django support

Django support for a Python project can be turned on or off by selecting/clearing the checkbox Enable Django support in the Django page.

To enable Django support, follow these steps:

  1. Open the project Settings dialog (Ctrl+Alt+S) and navigate to the Languages & Frameworks | Django page.

  2. Make sure that the checkbox Enable Django support is selected.

  3. Apply changes (if any) and close the dialog.

Last modified: 27 June 2024