In print 'time' what's time? Should you not have print exp_datetime? On 27 February 2012 01:27, Stanwin Siow <stanwin.kts...@gmail.com> wrote:
> 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 following error throws at those two lines. > > Err: sequence item 0: expected string, int found > > Is there something wrong with the module? > > > > > > Best Regards, > > Stanwin Siow > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.