Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Community-Member-Management-System/CMMS-Backend

Repository files navigation

CMMS-Backend

Django CI

2019-2020 春季学期科大软件工程项目「社团成员管理系统」后端部分。

Configuring Database

cp cmms/cmms/mysql_example.cnf cmms/cmms/mysql.cnf
create database CMMS character set utf8mb4;
create user 'cmms'@'localhost' identified by 'cmms';
GRANT ALL ON CMMS.* to 'cmms'@'localhost';
GRANT ALL ON CMMS_test.* to 'cmms'@'localhost';
python manage.py migrate
python manage.py createsuperuser
python manage.py set_user <superusername> <nickname> <realname>

Other Management Commands

python manage.py set_community <community_id>  # make a community valid
python manage.py create_user <from> <to> <valid>  # create users from 'test{from}' to 'test{to}', set valid to 0 if invalid
python manage.py create_community <from> <to> <user_id> <valid>  # create communities from 'test{from}' to 'test{to}' with owner as user_id, set valid to 0 if invalid

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages