Unexpected tokens in <!DOCTYPE html> in PyCharm Community Edition

对着背影说爱祢 提交于 2020-12-12 02:23:09

问题


I am new in using PyCharm but I am loving it gradually. I am getting a red underline on <!DOCTYPE html> and the error is "Unexpected Token".

Why PyCharm shows it? I can't understand.


回答1:


It usually happened when you don't enable Django in Pycharm setting. to resolve the problem:

1- In Pycharm open Setting in File menu
2- Select and expand Languages & Frameworks
3- Select Django and enable  it
4- Select your Django project root
5- Select your project setting.py file
6- Select your project manage.py file
7- Apply setting
8- Enjoy Your Life!



回答2:


PyCharm does not provide support for the Django framework in the free community edition. The best solution may be to go with another IDE (at least until support is added).



来源:https://stackoverflow.com/questions/61277709/unexpected-tokens-in-doctype-html-in-pycharm-community-edition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!