Askbot installation error Column 'session_key' cannot be null"

asked 2016-03-08 00:57:21 -0500

rgovind's avatar

updated 2016-03-09 06:00:54 -0500

Evgeny's avatar


I am doing a new deployment of Askbot by cloning AskBot Gitgub (ASKBOT/askbot-devel.git) and following installation instructions at

I tried two installs one with mysql and one with db.sqlite3. "Allow asking without registration" is set to false. Both times, I started server using runserver and tried to post a question without logging in. Both times I get the error session_key' cannot be null. It did not take me to signup page. Upon investigation, it seems that for table anonymous_question, session key is not set in the code and hence this validation is failing. How do I fix this problem?

Error : With MySql: (1048,Column 'session_key' cannot be null") With sqlite3: NOT NULL constraint failed: askbot_anonymousquestion.session_key

How do I fix this problem?

edit retag flag offensive close merge delete


No one has an answer?

rgovind's avatar rgovind  ( 2016-03-23 16:40:02 -0500 )edit

I am also facing the same problem please reply at the earliest

spbraju's avatar spbraju  ( 2016-05-30 05:51:56 -0500 )edit

Please include the version you're facing this issue with, also - have you customized anything in the settings file?

Evgeny's avatar Evgeny  ( 2016-06-15 05:52:36 -0500 )edit