Django 1.11
sudo pip3 install virtualenv
virtualenv -p python3 venv --no-site-packages
source venv/bin/activate
venv/bin/pip3 install -r requirements.txt
- Open project in PyCharm
- In
File
>Settings
>Project Interpreter
>Add Local
writevenv/bin/python3.5
- /api/goods/
GET
(current product),POST
(params: code, weight)
source venv/bin/activate &&
venv/bin/python3.5 manage.py makemigrations &&
venv/bin/python3.5 manage.py migrate