Unexpected tokens in <!DOCTYPE html>

已回答

Hi

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"

I am getting another error which says

 

Error - "Tag start is not closed"

<link href="{% static "css/jquery-ui.min.css" %}" rel="stylesheet">

Error -- "Unexpected Token" The below 3 lines are the starting lines of index.html

{% spaceless %}
{% load static %}
<!DOCTYPE html>

 

Screenshot -- 


Any help is highly appreciated. Thanks in advance.

1

Hi Prithvi Web! Could you please check if you have Django selected in Settings | Languages & Frameworks | Python Template Languages and Django integration is active in Settings | Languages & Frameworks | Django?

6
Avatar
Permanently deleted user

Brilliant. All sorted. Thanks a lot for your help.

0

same problem here,
but i can't solve it .
help me please

0

@... 

So if I don't have the professional version, I won't be able to get rid of this error?

0

请先登录再写评论。