-
Notifications
You must be signed in to change notification settings - Fork 23
Python 3
Christian Duvholt edited this page Mar 2, 2016
·
5 revisions
We're migrating to Python 3 as of March 2016.
To upgrade to Python 3 do the following.
Install Python 3 packages:
sudo apt-get install python3 python3-dev
Recreate virtualenv:
mv ~/.virtualenvs/onlineweb ~/.virtualenvs/onlineweb_2 # rename virtualenv
mkvirtualenv onlineweb -p /usr/bin/python3
Update pip packages in vagrant:
workon onlineweb
cd /vagrant
pip install -r requirements.txt
# Delete old .pyc files
find . -name '*.pyc' -delete
Update onlineweb4/settings/local.py:
Change
from base import PROJECT_ROOT_DIRECTORY
to
from .base import PROJECT_ROOT_DIRECTORY