@lniwn
2017-10-17T21:34:17.000000Z
字数 294
阅读 547
数据库
博客
sudo apt-get postgresql
pip install Psycopg2
sudo -u postgres createuser -s lniwn
sudo -u postgres createdb -O lniwn -E 'UTF8' -W -T 'template0' oaoa
sudo -u postgres psql
\password [username]
SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@host:port/database-name'