PyCharm 2.6 Web Help

2.0+

File | Settings | Template Languages

Ctrl+Alt+SCommand Comma

settings

PyCharm | Preferences | Template Languages

Ctrl+Alt+SCommand Comma

settings

Use this page to select the template language to be used in each of the projects opened in the same window, specify template folders, and enable templates in JavaScript.

In this section:

Projects pane

Item Description
Projects This pane displays the list of projects, opened in the same window. The first project in the list is the primary project.

Note

This pane is not shown, if there is only one open project.

Template languages pane

Item Description
Template language Select the desired template language for your project from the drop-down list. For example, you can mark your project as using Django templates even if it is not a Django project.

The available template languages are:

  • None: is this option is selected, the project doesn't use any template language.
  • Django
  • Mako
  • Jinja2
2.6+ Template file types In this section, specify the types of files, where templates will be recognized.
Press add to show the list of available file types, and choose the desired one.
Press delete to delete the selected file type. Note that the default file types (HTML, XHTML, and XML) may not be deleted.
Templates directories By default, this field shows the templates folder that has been defined on project creation.

Note that if a template directory is specified in the TEMPLATES_DIR in settings.py, it is automatically added to this field.

Use add and delete buttons to make up the list of the desired directories.

Enable template embedding in JavaScript If this check box is selected, resolve and completion will work for JavaScript.

See Also

Language and Framework-Specific Guidelines:

Web Resources: