This is a Content Management System(CMS) App build by Python Flask.
- Oauth auth / auth
- CRUD
- read/write google spreadsheet
- word.docx
- $ git clone
- go to venv
- $ pip install -r requirements.txt
- $ python manage.py db init
- $ python manage.py db migrate
- $ python manage.py db upgrade
- Flask
- Flask-SQLAlchemy
- Flask-Migrate
- Flask-Script
- Flsk-Oauthlib
- mysqlclient
- python-docx-template
- gspread
- gunicorn
if you use linux/ubuntu, please install
$ sudo apt-get install mysql-server
$ sudo apt-get install libmysqlclient-dev
setup UTF-8, my.cnf file is located at /etc/mysql/
[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
skip-character-set-client-handshake
[client]
default-character-set = utf8
[mysql]
default-character-set = utf8
Restart
$ sudo service mysql restart
- Enter MySQL
$ mysql -u root
- select DB
>>> use mysql;
- Update user data and setup root password
>>> update user set password=PASSWORD("password") where User='root';
- Refresh MySQL
>>> flush privileges;
- Exit MySQL
>>> quit
- Initial
$ python manage.py db init
- Add Migration
$ python manage.py db migrate
- Update to DB
$ python manage.py db upgrade
- flask-oauthlib
- Welcome to python-docx-template’s documentation!
- Mac OS 上安裝 MySQL 以及相關設定筆記
- Install MySQL on macOS Sierra
- brew install mysql on mac os el capitan
- gspread API Reference
- Inserting a Python datetime.datetime object into MySQL
- Inserting a unix timestamp into MySQL from Python [duplicate]
- mysql_config not found when installing mysqldb python interface
- Change MySQL default character set to UTF-8 in my.cnf?
- Mysql 插入中文错误:Incorrect string value: '\xE7\xA8\x8B\xE5\xBA\x8F...' for column 'course' at row 1