python

python

python – Redirect doesn't work correctly in Django on Raspberry PI

Question: I have a working Django project that works correctly under Ubuntu. But redirects work strangely on Malinka. Instead of redirecting the user to the correct page, it is redirected to some_addr%2Csome_addr:0/some_page . Redirect code: return HttpResponseRedirect(next) What can be wrong? I am using nginx 1.2.1 and gunicorn 0.14.5. The …

python – Redirect doesn't work correctly in Django on Raspberry PI Read More »

python – How to fix this encoding error in Pandas

Question: I'm having problem when python reads xlsx with pandas. When you run des_pt = (f_pt.head()[pt][0]).encode('utf-8').strip() and put the pt variable. There is an encoding problem because some characters are in utf-8. import pandas as pd create_result = open(‘resultado.json’, ‘w’) i = 0 file_name_pt = pd.ExcelFile(‘pt.xlsx’, encoding=’utf-8′) file_name_en = pd.ExcelFile(‘en.xlsx’) …

python – How to fix this encoding error in Pandas Read More »

Scroll to Top
AllEscort