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 %}