Answer the question
In order to leave comments, you need to log in
How to fix Atribute Error: 'NoneType' object has no attribute 'strip' error when creating page in django-cms?
I am new to Python and Django, however, the task arose to deploy a web portal on Django-cms on a local machine (using OpenServer). The installation went through no less a lot of rake and yet after installation I tried to create a completely blank page (without any code) and the following error popped up after clicking "Save":
AttributeError at /en/admin/cms/page/add/
' NoneType' object has no attribute 'strip'
Request Method: POST
Request URL: 127.0.0.1:8000/en/admin/cms/page/add/?language=en
Django Version: 1.7.7
Exception Type: AttributeError
Exception Value:
' NoneType' object has no attribute 'strip'
Exception Location: C:\Python27\lib\site-packages\mysql\connector\cursor.py in statement, line 860
Python Executable: C:\Python27\python.exe
Python Version: 2.7.9
Python Path:
['D: \OpenServer\OpenServer\domains\mydomain\projectfolder',
'C:\Windows\system32\python27.zip',
'C:\Python27\DLLs',
'C:\Python27\lib',
'C:\Python27\lib \plat-win',
'C:\Python27\lib\lib-tk',
'C:\Python27',
'C:\Python27\lib\site-packages']
Server time: Thu, 9 Apr 2015 16:31 :01 +0300
A lot of googling didn't turn up a solution, and dirty hacks (like commenting out this exception in cursor.py) led to other errors. Help, please, to understand.
Answer the question
In order to leave comments, you need to log in
Probably not specified settings for the database.
For example:
dev.mysql.com/doc/connector-python/en/connector-py...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question