This is a time critical bug otherwise I wouldn’t have posted here and it’s also my very first try with django and python so consider accordingly .
I am getting error
%o format: a number is required, not str
in my django app . The place where it shows error :(I am trying to create a message string)
msg_donor = 'Dear %s,\nThank you for contributing to %s \'s fundraising campaign
on Milaap.org. You\'ve made our day.\nRemember, since this is a loan, and not
donation, 100% of your money will come back to you!\nYou will shortly receive
your milaap login details. You can check who your money has gone to and track
your repayments through your account. Be sure to sign up and check your account
regularly for updates.\n\n%s' % (d.name, c.fundraiser_name, regardsStr)
I haven’t written any %o in my application andI am wondering how this error can be produced ??
You have
100% of your moneyin your string.%is a formatting character. Use100%% of your moneyto put a literal%in there.(I’m sort of surprised that Python skipped over the space between
%ando, but whatever.)