Django, TypeError: decode() argument 1 must be string, not None Django, TypeError: decode() argument 1 must be string, not None django django

Django, TypeError: decode() argument 1 must be string, not None


This is a bug in the Django code (see the django bug report).

The usual way in the ticket to fix this is to export your shell LANG environment variable.

export LANG="en_US.UTF-8"

That one works for me on a SuSE setup.


export LANG="en_US.UTF-8"

Works for me, but a way to do it by editing manage.py, django-admin creates a different directory structure than it used to and I'm moving files like settings.py, urls.py out of the subfolder.

EDIT: os.environ["LANG"]="en_US.UTF-8" (after doing import os)

I used sys.append to add the path to avoid import errors.