lhuang / cnprog

Automatically exported from code.google.com/p/cnprog
Other
0 stars 0 forks source link

变量未分配 #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 获得 rev.107
2. manage.py runserver
3. IE打开http://localhost:8000/

报错为
local variable 'begin' referenced before assignment
Exception Location: D:\local\python\projects\cnprog\forum\views.py in 
index, line 92 

我在87行下面加上两行
begin=0
end=0
就可以了

What version of the product are you using? On what operating system?
python 2.54 windows2003

Please provide any additional information below.
是我的python的什么display_error没关吗?

Original issue reported on code.google.com by kengic...@gmail.com on 26 Feb 2009 at 2:58

GoogleCodeExporter commented 8 years ago
Thanks.
I'll update this in next rev.

Original comment by cha...@gmail.com on 26 Feb 2009 at 8:41

GoogleCodeExporter commented 8 years ago
Fixed in Rev.108

Original comment by cha...@gmail.com on 28 Feb 2009 at 5:38