GithubHelp home page GithubHelp logo

tianwanggaibeizi / questionnaire-planet-django Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buaase-slime/questionnaire-planet-django

0.0 0.0 0.0 28.47 MB

问卷星球——问卷发布管理平台。北航 大二软件工程暑期实践 满分项目

License: MIT License

Python 100.00%

questionnaire-planet-django's Introduction

问卷星球

python3.8 django3.2

北航 1921 软件工程暑期实践 满分项目 万一有更多star呢

前端:https://github.com/ZewanHuang/Questionnaire-Planet

项目介绍

问卷星球,问卷发布平台,实现了含普通问卷、考试问卷、报名问卷、投票问卷、疫情打卡问卷等五类问卷的创建、编辑、发布、统计功能。

项目突出特点有:

  • 友好的问卷制作界面:空白问卷模板、大纲题目可拖拽编辑题目顺序、编辑问卷时每隔1分钟自动保存
  • 特别问卷的展示与设计:
    • 考试问卷显示截止时间倒计时、且题目乱序展示
    • 投票、考试问卷填报完成后展示答题反馈;
    • 疫情打卡可获取用户IP地址进行定位;
    • 报名问卷剩余名额的实时反馈,以及同步提交的数据库事务处理
  • 完整实用的数据统计分析(含图表分析与交叉分析
  • 各类问卷与数据导出文件的DIY设计
  • 逻辑关联问题设计
  • 支持上传小型图片和视频

运行环境

Python 3.8 及以上

Django 3.0 及以上

安装第三方依赖库,请根据操作系统类型在项目根目录下使用以下命令安装

pip install -r requirements.txt 
<!-- windows -->
pip install -r requirements_linux.txt 
<!-- linux -->

此外,若您想将此项目部署至linux,还需再linux上安装Libreoffice,并安装宋体字体,以问卷导出pdf使用。否则使用相应功能会出现问题。本项目中使用Libreoffice的位置为/Submit/export.py/doc2pdf_linux中依此命令导出pdf,若您安装的Libreoffice 版本不为7.0 也请对应修改版本号。而windwos与linux所需依赖不同也就在pdf导出上面,其余全部相同。

cmd = 'libreoffice7.0 --headless --invisible  --convert-to pdf:writer_pdf_Export'.split() + [docPath] + ['--outdir'] + [pdfPath]

如何使用

须结合 前端说明 进行配置

运行项目前,请根据文件内容提示修改 utils/secrets.py,其中包含前端路由 webFront、后端路由 webBack,数据库基本信息 DataBase 和基本邮箱信息Email。 如需连接其他类型的数据库也请对应修改utils/secrets.py 的内容

而后使用python manage.py makemigrationspython manage.py migrate 生成对应数据库文件

本地运行项目,使用python manage.py runserver运行本项目,由于前后端的分离性,可以结合前端项目来运行此项目

基本页面展示

欢迎主页

welcome

管理中心

center

编辑界面

edit

填写界面

publish

统计界面

statistic

其他

由于此项目在开发后进行了一次未经测试的大规模项目结构重构,实际运行时可能会遇到一些依赖问题,欢迎在遇到问题时使用Email或Issue联系我们。

Star History

Star History Chart

questionnaire-planet-django's People

Contributors

bflameswift avatar huanngzh avatar shiyiting753 avatar deepsource-autofix[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.