From 7a6f44a1c4a3f9ce9bf53c672ce9c298834e99c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BD=A6=E4=BA=AE=E4=BA=AE?= Date: Thu, 19 Jan 2017 20:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=90=88=E5=B9=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DjangoBlog/settings.py | 2 +- templates/share_layout/base.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DjangoBlog/settings.py b/DjangoBlog/settings.py index 3f0e707..ed94f02 100644 --- a/DjangoBlog/settings.py +++ b/DjangoBlog/settings.py @@ -23,7 +23,7 @@ SECRET_KEY = '&3g0bdza#c%dm1lf%5gi&0-*53p3t0m*hmcvo29cn^$ji7je(c' # SECURITY WARNING: don't run with debug turned on in production! # DEBUG = True -DEBUG = True +DEBUG = False # ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['www.lylinux.net', '127.0.0.1'] diff --git a/templates/share_layout/base.html b/templates/share_layout/base.html index 354d1f9..7db1549 100644 --- a/templates/share_layout/base.html +++ b/templates/share_layout/base.html @@ -54,7 +54,7 @@

{{ SITE_DESCRIPTION }}

- {% cache 36000 sidebar %} + {% cache 36000 nav %} {% include 'share_layout/nav.html' %} {% endcache %} @@ -63,7 +63,7 @@ {% block content %} {% endblock %} - {% cache 36000 nav %} + {% cache 36000 sidebar %} {% block sidebar %} {% endblock %}