How to fix the UnboundLocalError

2015-05-11 Thread
*This is my code, * def test_words(request): if request.method == "POST": i_d = request.user.id pre_word = [] pre_mean = [] pre_ques = {"word":"","option1":"","option2":"","option3":"","option4":""} key_list = ["option1","option2","option3","option4"]

Re: How to get the complement in django?

2015-04-29 Thread
在 2015年4月29日星期三 UTC+8下午6:32:09,Tom Evans写道: > > On Wed, Apr 29, 2015 at 11:06 AM, 田福顿 > > wrote: > > I want to connect to tables than get their complment, but I don't know > how > > to do it? Plaea give me some suggestion. I have wasted two days in this

How to get the complement in django?

2015-04-29 Thread
I want to connect to tables than get their complment, but I don't know how to do it? Plaea give me some suggestion. I have wasted two days in this problem.BTW this way didn't work:Django: Getting complement of queryset