Goto pj_env
cd lib/python2.7/site-packages/
Add .patch to github commit
wget https://github.com/divio/django-cms/commit/40607f6d09527665c8f5dd8c9be31b0f711608a1.patch head -n10 4060...
From 40607f6d09527665c8f5dd8c9be31b0f711608a1 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti <i.spalletti@nephila.it> Date: Sun, 19 Jul 2015 07:59:37 +0200 Subject: [PATCH] Fix error in PageField for Django 1.8 --- cms/models/fields.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cms/models/fields.py b/cms/models/fields.py <--------- begin with cms
Now both the patch and cms folder are in site-packages. Patch with:
patch -p1 < 40607f6d09527665c8f5dd8c9be31b0f711608a1.patch
Make sure you use the new javascript files after upgrading to 3.1.1 or above. (Make sure collectstatic is run on your server, clear browser cache etc). 3.1.1 fixed a security issue with the publish button, the two HTTP requests you're seeing indicate that it's still using the old JS.