Skip to content

Halcyon905/ku-polls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ku-polls: an Online poll for Kasetsart University

build codecov

An application for conducting surveys, written in Python using django. This project is based off of Django Tutorial project, with additional functionality.

How to install and run.

In order to install the application:

  1. clone the repo into desired directory
  2. find the directory in terminal and run
    python -m venv env
  3. then run
    . env/Scripts/activate
  4. then to install the requirements run
    pip install -r requirements.txt
  5. exit the environment then use
    deactivate
  6. Now you need to create a .env file in the project directory. Follow the example file called sample.env. To generate a secret key go to this site
  7. then to create the database run
    python manage.py migrate
  8. finally, to load the data run
    python manage.py loaddata data/polls.json data/users.json

In order to run the application, run the command:

python manage.py runserver

then you can go to http://127.0.0.1:8000/ or http://127.0.0.1:8000/polls to use the web application.

Demo Admin

Username password
Admin ilikeisp

Demo Users

Username password
test123 thisisfine
person1 hello123

Project Documents

All project documents are in the Project Wiki

About

Web application for surveys in Kasetsart University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published