Re: optimisation django

2021-02-11 Thread Anurag Kumar
use indexes.. On Wednesday, February 10, 2021 at 7:25:45 PM UTC+5:30 en2lin...@gmail.com wrote: > > I am developing a django application, most of the views are tables, I am > facing a problem the loading time of my page is extremely long. how can I > do to optimize this, my data set repres

'base64' is not a text encoding; use codecs.decode() to handle arbitrary codecs

2018-02-20 Thread anurag kumar
Its showing error LookupError: 'base64' is not a text encoding; use codecs.decode() to handle arbitrary codecs. Last few lines when the execution stops are - thumbnail = resize(photo_data, 200, 200) File "/home/anurag/photoshare/app.py", line 406, in resize image_string = StringIO(img.decode(