An application for conducting a poll or survey, 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.
- Clone this github repository.
- Change file mysite/sample.env to mysite/.env
- Create a virtual environment.
- create the virtual env in "env/", only 1 time.
python -m venv env
- start the virtual env in bash or zsh.
. env/bin/activate
- install required packages.
pip install -r requirements.txt
-
Run migrations.
python manage.py migrate
-
Install data from the data fixtures.
python manage.py loaddata data/polls.json data/users.json
-
Run server.
python manage.py runserver
-
Open web application on http://localhost:8000/polls/ or control+click at suggestion url http://127.0.0.1:8000/
Note: You can create admin account to manage your polls by
python manage.py createsuperuser
and go to http://localhost:8000/admin
Username | Password |
---|---|
demo1 | testpass1 |
demo2 | testpass2 |
All project documents are in the Project Wiki