Instagram embedding

35 views
Skip to first unread message

Mikko Meronen

unread,
Oct 13, 2018, 10:40:45 AM10/13/18
to django...@googlegroups.com
Hi,

I'm trying to embed Instagram to my development site by using a Instagram embedding code, but when I add it to my html, I get the error below. 

I would appreciate a lot if someone could help me to understand the error and solve the problem.

Best regards,

- Mikko

UnicodeDecodeError at /news/

'utf-8' codec can't decode byte 0xe4 in position 7333: invalid continuation byte
Request Method:GET
Request URL:http://127.0.0.1:8000/news/
Django Version:2.1
Exception Type:UnicodeDecodeError
Exception Value:
'utf-8' codec can't decode byte 0xe4 in position 7333: invalid continuation byte
Exception Location:C:\Users\Mikko\django-project\lib\codecs.py in decode, line 321
Python Executable:C:\Users\Mikko\django-project\Scripts\python.exe
Python Version:3.6.4
Python Path:
['C:\\Users\\Mikko\\django-project\\topi',
 'C:\\Users\\Mikko\\django-project\\Scripts\\python36.zip',
 'C:\\Users\\Mikko\\django-project\\DLLs',
 'C:\\Users\\Mikko\\django-project\\lib',
 'C:\\Users\\Mikko \\django-project\\Scripts',
 'c:\\python36-32\\Lib',
 'c:\\python36-32\\DLLs',
 'C:\\Users\\Mikko\\django-project',
 'C:\\Users\\Mikko\\django-project\\lib\\site-packages']
Server time:Sat, 13 Oct 2018 14:25:38 +0000

Unicode error hint

The string that could not be encoded/decoded was: ;"> N�yt� t

Error during template rendering

In template C:\Users\Mikko\django-project\topi\news\templates\news\home.html, error at line 1

utf-8

1{% extends 'news/base.html' %}

Mikko Meronen

unread,
Oct 13, 2018, 12:47:48 PM10/13/18
to django...@googlegroups.com
Hi,

It worked in production environment well, just not in development environment.

- Mikko

Mateusz

unread,
Oct 14, 2018, 3:00:51 PM10/14/18
to Django users
My assumption, according to https://stackoverflow.com/questions/33295733/utf8-codec-cant-decode-byte-0xe4-invalid-continuation-byte-in-timezone is, that you use German "ä" letter somewhere. Probably your local timezone is "Mitteleuropäische Zeit" which can be displayed by Instagram somewhere in the embed code, and on production the timezone is different or language is just English.

Ing.Daniel Bojorge

unread,
Oct 14, 2018, 8:48:25 PM10/14/18
to django...@googlegroups.com
#Curso #Django #Clase #Routin #Rutas #Python #PostgreSQL #Course #FREE #Class #Gratis 

En esta clase veremos cómo utilizar la vista login y logout predeterminada de Django

Todo esto y mucho más en el curso de DJANGO. 

Si te ha sido de utilidad esta clase o crees que puede ayudarle a otra persona, te pido la compartas.

Más información:



Dios L@s Bendiga

Saludos,

 
 
Mi Blog
Curso Django 2.1
Nicaragua

"Si ustedes permanecen unidos a mí, y si permanecen fieles a mis enseñanzas, pidan lo que quieran y se les dará.
(Juan 15:7 DHH)
Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR.
(Jeremías 17:7 RV2000)


Reply all
Reply to author
Forward
0 new messages