Forums

Django slugify - cannot use a string pattern on a bytes-like object

I am getting this error in Django when trying to create a new record

TypeError at /admin/listings/listing/add/ cannot use a string pattern on a bytes-like object Request Method: POST Request URL: http://tkov.pythonanywhere.com/admin/listings/listing/add/ Django Version: 1.10.2 Exception Type: TypeError Exception Value:
cannot use a string pattern on a bytes-like object Exception Location: /home/tkov/.virtualenvs/commissions2/lib/python3.5/re.py in sub, line 182 Python Executable: /usr/local/bin/uwsgi Python Version: 3.5.2

would be awesome to get this working...

sounds like a python3 byte string vs a decoded string. see this