Upgraded Django on Dev

10 views
Skip to first unread message

swainn

unread,
Dec 16, 2015, 11:41:58 AM12/16/15
to Tethys Platform
All,

I have just pushed a major change to the dev branch of Tethys Platform in preparation for our release of 1.3.0 next week. In this change, we upgraded Django from 1.7 to 1.9, which necessitated a lot of changes and will require more than just pulling the branch to update. This change was necessary, because Django 1.7 is no longer supported and does not receive security updates. If you pull dev, you will also need to do the following to bring your Tethys installation up-to-date:


1. Reinstall requirements

    (tethys) $ pip install --upgrade -r /usr/lib/tethys/src/requirements.txt
    (tethys) $ python /usr/lib/tethys/src/setup.py develop


2. Create a new settings.py file

    (tethys) $ mv /usr/lib/tethys/src/tethys_apps/settings.py /usr/lib/tethys/src/tethys_apps/settings.py_bak
    (tethys) $ tethys gen settings -d /usr/lib/tethys/src/tethys_apps


3. Update any specific settings like database usernames, passwords, social auth keys and secrets in the new settings.py.


4. Make migrations

    (tethys) $ tethys manage syncdb

Please post other issues you run into while upgrading, if any, to this post.
Reply all
Reply to author
Forward
0 new messages