[Answered ]-'from __future__ import unicode_literals' in Django Migrations

2👍

from __future__ import unicode_literals makes "abc" unicode instead of str in Python 2.x, so "abc" then means the same as u"abc" while otherwise "abc" would mean the same as b"abc".

For more info see the __future__ docs or PEP 3112 directly.

Leave a comment