'How to enable autocomplete for Django HTML files in Pycharm? [duplicate]

How to get my Django HTML files color coded correctly? Currently none of the variables or tags are recognized by Pycharm. However, within the same file the basic html syntax is recognized (autocomplete and color coded):

snippet of Pycharm code

I have tried to add Django in:

  1. Setting > Color Scheme
  2. Settings > Languages & Frameworks

But it does not seem to show as an option.



Solution 1:[1]

Language & Framewroks -> Django

  • Enable Django supprot
  • Add project root (your folder), settings (path to settings.py), manage scripts (path to manage.py), folder pattern to track files (type migrations)
  • Apply and restart

OR

Editor -> Live templates

  • Check Django
  • apply and restart

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rajeel Rajput