Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 742 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 742 Bytes

Mycloud

Requirements

  • Python 3.7,
  • Django 3.0.3
  • MySQL
  • PyMySQL 0.9.3

Run the code

Initialize Database

mysql -u root -p
CREATE DATABASE cloud;
python manage.py makemigrations --empty index
python manage.py makemigrations
python manage.py migrate

Modify Encode

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;

Start

server

python manage.py runserver 0.0.0.0:8000  

client

cd ./qt
python ./main.py