- Python 3.7,
- Django 3.0.3
- MySQL
- PyMySQL 0.9.3
mysql -u root -p
CREATE DATABASE cloud;
python manage.py makemigrations --empty index
python manage.py makemigrations
python manage.py migrate
this step is necessary to avoid encode error
use cloud;
ALTER TABLE index_fileinfo CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE index_folderinfo CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE index_shareinfo CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
server
python manage.py runserver 0.0.0.0:8000
client
cd ./qt
python ./main.py