轻量级django 笔记 第四章 构建 REST API

轻量级django 笔记 第四章 构建 REST API

git clone https://github.com/lightweightdjango/examples.git
git status
git branch -a
git checkout remotes/origin/chapter-4

pip install djangorestframework3.1.3
pip install django-filter
0.10.0
pip install Markdown==2.6.2

pg_config executable not found
https://stackoverflow.com/questions/11618898/pg-config-executable-not-found

sudo apt install postgresql
sudo apt install postgresql-client-common
sudo apt-get install postgresql-client
sudo apt-get install libpq-dev python-dev

linux Ubuntu 16.04安装 postgresql
https://blog.youkuaiyun.com/q954103/article/details/96474372

sudo /etc/init.d/postgresql restart
\q 退出

ubuntu下postgreSQL9.6安装配置
https://blog.youkuaiyun.com/zj0078/article/details/71156064

psql 密码 是123abc
jack的密码是 123abc

PostgreSQL新手入门
http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql.html
sudo -u postgres createuser --superuser jack
sudo -u postgres psql
123abc

sudo /etc/init.d/postgresql restart

pip install psycopg2==2.6.1
createdb -E UTF-8 scrum

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值