$cat requirements.txt
-r requirements/production.txt
psycopg
....
$ cat requirements/dev.txt
-r requirements/base.txt
ipython
....
$ cat requirements/base.txt
Django
....
mkdir temp
cd temp
git clone https://github.com/python/cpython.git
./configure --prefix=$HOME/bin/python
make
make install
# удалить симлинк python3 на python3.6
rm /home/$USERNAME/bin/python/bin/python3
export PATH=$PATH:/home/$USERNAME/bin/python/bin
python3.6 -V
> Python 3.6.0a3+
# справка по созданию виртуального окружения
python3.6 -m venv -h
$ sudo apt-get install python-dev python-pip virtualenvwrapper
$ mkvirtualenv virtname -p /usr/bin/python3
(virtname) $ pip install -r requirements.txt
tag
code #### server
балансер(прокси) | {твой контейнер: nginx -> [static_files, dynamic_django]
| {другой контейнер: nginx -> [static_files, dynamic]
....
#### server
/usr/local/bin/python