Code Monkey home page Code Monkey logo

questionnaire_datadriving's Introduction

questionnaire_dataDriving

Django code for data driving Questionnaire web site that providing users with different questionnaire. Admin can dynamically change each questionnaire's question and the number of questions.

Environment:

  • virtualenv

Required Software:

  • python 2.7
  • Django 1.11.8

Used Libraries:

  • Twitter Bootstrap 3
  • Jquery 3.3.1

Test:

  • Test by django default test.
  • Running test case by python manage.py test

Instructions to run locally:

If has django 1.11.8
  • Navigate to src folder by cd src
  • Run local server by python manage.py runserver
If want to use Virtual envirenment
  • Install virtualenv by pip install virtualenv
  • virtualenv questionnaire_dataDriving
  • cd questionnaire_dataDriving
  • Under questionnaire_dataDriving folder, active virtual environment by source bin activate
  • Pip freeze to check all required software installed. Otherwise Install all required softwares
  • Navigate to src folder by cd src
  • Run local server by python manage.py runserver

Instruction to use questionnaire:

  • Make sure local server is running at http://127.0.0.1:8000/.
  • Login with admin page at http://127.0.0.1:8000/admin/ with super user (username: admin, password:1234abcd).
  • Add a new questionnaire by click add button in Questionnaires.
  • Add new questions by click add button in Questions.
  • Add questions to questionnaire by click add button in Questionnaire_ questions.
  • Back to Home page (http://127.0.0.1:8000/), all opened questionnaires will show in home page if current user is not staff or super user. Otherwise home page will show all exist questionnaires.
  • Click one questionnaire, it will show all related questions. User can submit this questionnaire once they answer all questions. Otherwise it will display a message to warn. Once successful submit, browser will alert a success message and redirect to home page.

questionnaire_datadriving's People

Contributors

panchyo0 avatar

Watchers

James Cloos avatar  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.