Skip to content Skip to sidebar Skip to footer

Django.db.utils.operationalerror: Near "񐁂򐁇n": Syntax Error

I'm getting some weird error when i run ./manage.py runserver or migrate command. I checked the files from where the exception is thrown, but no idea Unhandled exception in thread

Solution 1:

The problem is python build with ucs-2, so rebuild with ucs-4 should be work.

Python 2.7.6

wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar xf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make && make altinstall

Post a Comment for "Django.db.utils.operationalerror: Near "񐁂򐁇n": Syntax Error"