Unexpected tokens in <!DOCTYPE html>

Answered

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.

3 comments
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

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

0

Please sign in to leave a comment.