在 Django CMS 專案一台移植到另一台的情況下,可能出現 SuspiciousOperation Error
The request’s session was deleted before the request completed. The user may have logged out in a concurrent request, for example.
出現這個問題的原因可能是因為在裝了 template editor 的情況之下, 沒有把所有的 template 檔案都 commit 上去(可能有一些 html 檔是自己本機測試的,所以本來就不需要 commit上去),但是這樣就會導致以上錯誤的出現。
解決方法是:
在 commit 的時候本來就不需要 commit static/_Iuno.template_editor_backup資料夾,但是需要在移植到另一台時重新 build tree (python manage.py build_tree) 即可

推測原因: 在 login 後會去讀它的東西, 但因為沒檔等原因死掉了, 導致 login 的 transaction 被 rollback, 所以後面的 session.save 時找不到前一筆 session 的值, 就掛掉