Web application for polls and surveys at Kasetsart University, written in Python using Django. It is based on the Django Tutorial project, with additional functionality.
This application is part of the Individual Software Process course at Kasetsart University.
The computer must have Python version 3.9
clone the https://github.com/kuisskui/ku-polls.git in your directory.
git clone https://github.com/kuisskui/ku-polls.git ku-polls
go to ku-polls and install the package as a virtual environment following these commands.
cd ku-polls
python -m venv venv
(if you are mac)
source ./venv/bin/activate
(if you are window)
venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py loaddata data/polls.json data/users.json
last step, get the SECRET_KEY here then open the sample.env file to fill the SECRET_KEY in line two and change that file name to .env
before you run the server you must activate the virtual environment first(can notice by (venv) in front of the prompt) command to activate the virtual environment
(if you are mac)
source ./venv/bin/activate
(if you are window)
venv\Scripts\activate
then run the server only one command
python manage.py runserver
admin | Username | Password |
---|---|---|
1 | admid | admin.1234 |
User | Username | Password |
---|---|---|
1 | Pikachu | Pikachu.2002 |
2 | Raichu | Raichu.2002 |
All project documents are in the Project Wiki