This is a task in the course Software Engineering 2017, Tsinghua University.
- Xiufeng Huang, EE, THU, 2014;
- Haidong Zhu, EE, THU, 2015;
- Yining Cao, SE, THU, 2015;
- Haotian Liu, EEA, THU, 2014;
- Yizeng Han, DA, THU, 2014;
- Zhixing Zhang, MSE, THU, 2015;
In response to the lack of liquidity in lecture and competition information on campus and the students' excessive access to information and resources, our team hopes to design a competition management system to organize and summarize information on competitions and lectures. And an algorithm is designed to recommend appropriate lectures and competitions for specific students, so as to increase the students' awareness of the lectures they are interested in and the competitions they are interested in, so as to maximize the use of information.
- Python: v3.6.2
- Django: v1.11.6
pip install django
pip install easy_thumbnails django-image-cropping
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple wechat-sdk
cd src/CLMS
python manage.py makemigrations
python manage.py migrate
Create secert.py
in src/CLMS/
, and add the following content.
class Secret():
SECRET_TOKEN = 'YOUR_TOKEN'
APP_ID = 'YOUR_ID'
APP_SECRET = 'YOUR_SECRET'
ENCODING_AES_KEY = 'YOUR_KEY'
HOME_URL = 'http://YOUR_URL'
If you want to deploy it online, you should add your server ip in WEIXIN's IP whitelist.
cd src/CLMS
python manage.py runserver localhost:8080
cd src/CLMS
python manage.py migrate --run-syncdb
Regex replace src=((?!.*http)".+?")
to src={% static $1 %}
.
Regex replace href=((?!.*(\#|http))".+?")
to href={% static $1 %}
.
docker-machine create --driver=generic --generic-ip-address=YOUR_IP qcloud(your name)
eval $(docker-machine env qcloud)
cd src/CLMS/
docker-compose up -d --build
GPLv3