is actually more than a hidden span tag, the content is +1, with setinterval implementation of the dynamic effect
settings.py
Installed_apps = [ ... ' App01 ', # Register App]staticfiles_dirs = (Os.path.join (base_dir, "statics"), # Now add the configuration, here is the tuple, note the comma templates = [ ... ' DIRS ': [Os.path.join (Base_dir, ' templates ')],]
urls.py
From Django.contrib import adminfrom django.urls import pathfrom django.conf.urls import URL, includefrom app01 import vie Wsurlpatterns = [ # likes Effect implementation URL (R ' ^zan.html ', Views.zan),]
views.py
From django.shortcuts import Render, Redirectfrom app01 import models# Click like effect to achieve Def Zan (request): return render (Request , ' zan.html ')
views.py
From django.shortcuts import Render, Redirectfrom app01 import models# Click like effect to achieve Def Zan (request): return render (Request , ' zan.html ')
Templates/zan.html
<! DOCTYPE html>page display;
Python Learning---drawer frame analysis [likes function analysis]