PyCharm 3.1.0 Web Help

PyCharm suggests the following ways to mark folders as template directories:

Project creation

When creating a Django application, you can immediately specify a folder where templates will be stored.

Using the template languages page

To define template directories
  1. Open Settings dialog, and click the Python Template Languages page.
  2. In the Template Directories field, click Add, and choose the desired directory in the dialog that opens.
  3. Apply changes.

Using the context menu command

To mark a folder as a template directory
  1. In the Project tool window, right-click the desired directory.
  2. On the context menu, choose Mark Directory As, and then click the checked command Template Directory.

    This results in adding the marked directory to the list of template directories in the Python Template Languages page.

See Also


Web Resources: