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