Commit 130d88bf authored by David Seaward's avatar David Seaward

update to Django 1.11 (see #4)

parent 83ae3149
......@@ -19,7 +19,7 @@ Prerequisites
* `libssl-dev`
* `python3-dev`
* Python/Django packages: see `requires/requirements.txt`
* Includes Django 1.10
* Includes Django 1.11
Other versions and alternatives may work but are untested.
......@@ -36,7 +36,7 @@ Setup
* Set up virtualenv
* Create virtualenv in project folder (`virtualenv . --python=python3`)
* Activate virtualenv (`./bin/activate.py`)
* Install Python packages (`pip install -r requires/requirements.txt`)
* Install Python packages (`pip install --requirement requires/requirements.txt`)
* Complete Django settings
* `cp ./conf/etc/config.ini /etc/opt/purist_account/`
* `cp ./conf/etc/secret.ini /etc/opt/purist_account/`
......@@ -55,6 +55,22 @@ Setup
For more options and details see
<https://docs.djangoproject.com/en/1.11/#the-development-process>
Update
------
* Stop site
* Update packages with `apt update && apt upgrade`
* Update code in `/opt/purist_account/`
* Update settings in `/etc/opt/purist_account/`
* Update virtualenv:
* Activate virtualenv (`./bin/activate.py`)
* Update Python packages (`pip install --requirement requires/requirements.txt`)
* Do not use `pip install --update` as this will not respect requirements
* Update site:
* Run `./manage.py collectstatic`
* Run `./manage.py migrate` (see **Migrations** below)
* Start site
Migrations
----------
......
Django==1.10.7
Django==1.11.2
django-auth-ldap==1.2.12
django-ldapdb==0.8.0
django-ldapdb==0.9.0
django-registration==2.2
Jinja2==2.9.6
jinja2-django-tags==0.5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment