python-flask + sqlite 考试系统,可以创建多期题目,题目分为选择题和问答题,
选择题提交答案后可直接匹配答案,问答题在后台预览每道题每个人的回答,
每个人的登录名和当前ip绑定,禁止多次登录;
本项目开发环境是win7 其他环境自行查找相关安装方法 区别都不大,因为win下是最难的T^T;
-
install python3.x https://www.python.org/downloads/
-
pip install virtualenv
-
create new folder
exam
-
cd exam
andgit clone https://github.com/hsian/exampy.git
-
cd exampy
create virtualenvvirtualenv venv
and switch tovenv\scripts\activate
-
installation dependency
pip install -r requirements.txt
-
initialization db
python manage.py db init
python manage.py db migrate
python manage.py db upgrade
-
insert data
python manage.py deploy
-
run server
python manage.py runserver
or 'python tornado_server.py`
开发使用 python manage.py runserver ,管理员用户名:admin, 密码:123456; <详见配置文件 config.py>