Web application for conducting online polls and surveys in Kasetsart University.
Vision Statement
Requirements
Iteration 1 Plan
Iteration 2 Plan
Iteration 3 Plan
Name | Recommended version(s) |
---|---|
Python | 3.7 or higher |
Django | 2.2 or higher |
-
Clone this project repository to your machine.
git clone https://github.com/tboonma/ku-polls.git
-
Get into the directory of this repository.
cd ku-polls
-
Create a virtual environment.
python -m venv venv
-
Activate the virtual environment.
- for Mac OS / Linux.
source venv/bin/activate
- for Windows.
venv\Scripts\activate
-
Install all required packages.
pip install -r requirements.txt
-
Create
.env
file inmysite/
and write down:DEBUG=True SECRET_KEY=Your-Secret-Key ALLOWED_HOSTS=localhost,127.0.0.1
-
Run this command to migrate the database.
python manage.py migrate --run-syncdb
-
Initialize data
python3 manage.py loaddata users polls
-
Start running the server by this command.
python manage.py runserver
Users provided by the initial data (users.json):
Username | Password |
---|---|
demo1 | Vote4me! |
demo2 | Vote4me2 |