Re: Question on unknown error

2012-02-26 Thread Andy McKay
You can return whatever you want. All depends how you are using the result. On Sun, Feb 26, 2012 at 5:48 PM, Stanwin Siow wrote: > It's ok guys! > > > I figured out the error. > > At the end of the method we were returning 0 and 1 that will throw the > error. > > Is there some rule in django that

Re: Question on unknown error

2012-02-26 Thread Stanwin Siow
It's ok guys! I figured out the error. At the end of the method we were returning 0 and 1 that will throw the error. Is there some rule in django that we are not supposed to return integers? Best Regards, Stanwin Siow On Feb 27, 2012, at 5:38 AM, Mario Gudelj wrote: > In print 'time' wha

Re: Question on unknown error

2012-02-26 Thread Andy McKay
Please give us the full traceback and exact line of code it occurred on. There isn't enough information right now. On Sun, Feb 26, 2012 at 1:38 PM, Mario Gudelj wrote: > In print 'time' what's time? Should you not have print exp_datetime? > > > On 27 February 2012 01:27, Stanwin Siow wrote: >> >

Re: Question on unknown error

2012-02-26 Thread Mario Gudelj
In print 'time' what's time? Should you not have print exp_datetime? On 27 February 2012 01:27, Stanwin Siow wrote: > Hello, > > I have the following method: > > def subscribe_keyword(userid,subDay =7,KEYWORD_SET=frozenset()): > try: > ... > > sub_datetime = datetime.datetime.now() >

Question on unknown error

2012-02-26 Thread Stanwin Siow
Hello, I have the following method: def subscribe_keyword(userid,subDay =7,KEYWORD_SET=frozenset()): try: ... sub_datetime = datetime.datetime.now() exp_datetime = sub_datetime + timedelta(days=subDay) print 'time' However when i try to run my app, The follo