Преглед на файлове

Signed-off-by: zry <admin@z-touhou.org>

zry преди 8 години
родител
ревизия
0195eea391
променени са 2 файла, в които са добавени 1 реда и са изтрити 10 реда
  1. 0 6
      templates/home/home.html
  2. 1 4
      views/home.py

+ 0 - 6
templates/home/home.html

@@ -17,10 +17,4 @@
 		{% endif %}
 	</div>
 </div>
-
-<ul>
-{% for i in dbginfo %}
-	<li>i</li>
-{% endfor%}
-</ul>
 {% endblock %}

+ 1 - 4
views/home.py

@@ -20,19 +20,16 @@ import traceback
 
 @login_detect()
 def Home(request):
-	dbginfo = []
 	mpid = CacheConfGet(cache,'HomePagePost',default=0)
-	dbginfo.append(repr(mpid))
 	try:
 		mpo = BlogPost.objects.get(id=str2int(mpid))
 		hp = True
 	except:
-		dbginfo.append(traceback.format_exc())
 		hp = False
 	if hp:
 		if not mpo.rendered:
 			hp = False
-	kwargs = {"request":request,"hp":hp,"mpo":mpo,"dbginfo":dbginfo}
+	kwargs = {"request":request,"hp":hp,"mpo":mpo}
 	return render_to_response('home/home.html',kwargs,RequestContext(request))
 
 def LeaveMsgPage(request):