Re: Sometimes get "incorrect padding error"- new bug in django 3.1?

2020-08-18 Thread Matthew Hegarty
Raised a ticket The only workaround is to truncate the django_session table. (clearsessions did not work) On Mon, 17 Aug 2020 at 21:24, Matthew Hegarty wrote: > Hey Di

Re: type error

2020-08-18 Thread Rostislav Kornatsky
Hi, my name is Rostislav and I'm learning Django too, We could collaborate and learn it together:) пт, 14 авг. 2020 г. в 21:50, Peter Kirieny : > hello, can somebody help with this please > > match = datetime_re.match(value) > TypeError: expected string or bytes-like object > > I've made migr

Re: type error

2020-08-18 Thread Liu Zheng
hi, What’s the type and value of that variable “value”? It would be helpful to print out value and type(value) right in front of this line where error occurs. Best Zheng On Tue, 18 Aug 2020 at 9:21 PM, Rostislav Kornatsky < info.send.o...@gmail.com> wrote: > Hi, my name is Rostislav and I'm lea

Django ORM Model meta internal API to current API update

2020-08-18 Thread Asif Saif Uddin
Hi, I have got an old project of django 1.8 which use codes like links = [rel.get_accessor_name() for rel in self._meta.get_all_related_objects()] How would I upgrade this code snippets to django 2.2 LTS? TIA -- You received this message because you are subscribed to the Google Groups "Djan

Re: Django ORM Model meta internal API to current API update

2020-08-18 Thread Mbah Victor
I don't bro i just started new in Django Victor On Tue, Aug 18, 2020, 3:46 PM Asif Saif Uddin wrote: > > Hi, > I have got an old project of django 1.8 which use codes like > > links = [rel.get_accessor_name() for rel in > self._meta.get_all_related_objects()] > > How would I upgrade this code s

Re: type error

2020-08-18 Thread 'Amitesh Sahay' via Django users
Hi,  I have developed a django website for my company. Its schoolnskill.com. For now its not much to look at. But due to other work I am not able to add enhancements to it.  1) I need to add payment gateway(Paytm and Paypal)2) Create one more model and then create respective forms.py and views.p