From 90ac06a675c6ead0b6b36a0ff094acf298339dfa Mon Sep 17 00:00:00 2001 From: liangliang Date: Tue, 10 Oct 2017 21:43:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cnzz=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=B8=BA=E7=99=BE=E5=BA=A6=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/django_start | 4 ++-- templates/share_layout/analyticscode.html | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/bin/django_start b/bin/django_start index c65d59b7d..1bfb2bef1 100755 --- a/bin/django_start +++ b/bin/django_start @@ -3,8 +3,8 @@ NAME="djangoblog" # Name of the application DJANGODIR=//var/www/DjangoBlog # Django project directory SOCKFILE=/var/www/DjangoBlog/run/gunicorn.sock # we will communicte using this unix socket -USER=www-data # the user to run as -GROUP=www-data # the group to run as +USER=root # the user to run as +GROUP=root # the group to run as NUM_WORKERS=3 # how many worker processes should Gunicorn spawn DJANGO_SETTINGS_MODULE=DjangoBlog.settings # which settings file should Django use DJANGO_WSGI_MODULE=DjangoBlog.wsgi # WSGI module name diff --git a/templates/share_layout/analyticscode.html b/templates/share_layout/analyticscode.html index 9f7b933ce..f8165f029 100644 --- a/templates/share_layout/analyticscode.html +++ b/templates/share_layout/analyticscode.html @@ -1,12 +1,9 @@ \ No newline at end of file + var _hmt = _hmt || []; + (function () { + var hm = document.createElement("script"); + hm.src = "https://hm.baidu.com/hm.js?30dd00aec5f76607ba37c6770ae48e45"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + +百度统计 \ No newline at end of file