Django study notes (1) —— The package of the imported view file in urls is underlined and the underline appears after adding {% load static %} to the html page

The package imported into the view file in urls is underlined

The whole project is as follows:
Project Status
Just run it directly, don't worry about the redness. If it is changed to the following, it will not be red, but an error will be reported at runtime:

from django_learning.app01 import views

An underline appears after adding {% load static %} to the HTML page

An underline will appear {% load static %}after adding in the HTML page , as shown below:<!DOCTYPE html>

load static
As above, you don't need to pay attention to the underscore, just run it directly.

Guess you like

Origin blog.csdn.net/qq_35357274/article/details/124467092