<!DOCTYPE html>中的意外标记在PyCharm社区版中 [英] Unexpected tokens in <!DOCTYPE html> in PyCharm Community Edition

查看:468
本文介绍了<!DOCTYPE html>中的意外标记在PyCharm社区版中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用PyCharm的新手,但我逐渐喜欢上它.我在<!DOCTYPE html>上出现红色下划线,错误是意外令牌".

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".

为什么PyCharm会显示它?我不明白.

Why PyCharm shows it? I can't understand.

推荐答案

通常在您未在Pycharm设置中启用Django时发生.解决问题:

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!

这篇关于&lt;!DOCTYPE html&gt;中的意外标记在PyCharm社区版中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆