App allows visitors to vote on custom web polls. You can create questions, choices and choose a specific publish date for each poll.
- Developed with Python 3.8.10
- Django v4.0
- DB Adapter SQLite: does not require additional services
To avoid any compatibilites issues, you can use virtualenv to run the project and install dependencies. Read more on https://docs.python.org/3.8/library/venv.html
-
Make sure you have installed
pythonandpip:sudo apt update && sudo apt install python3-pip -
Install virtualenv
pip install virtualenv -
Setup a virtualenv directory
virtualenv venv -
Enable the virtualenv
source venv/bin/activate -
Follow to Quick start guide bellow.
- OBS: To disable the virtualenv, just run:
deactivate
-
Clone the project and navigate to directory with
cd django-polls -
Install dependencies running
pip install -r requirements.txt -
Run
python manage.py migrateto create the polls models. -
Run
python manage.py createsuperuserto create a admin superuser. -
Start the development server running
python manage.py runserverand visit http://127.0.0.1:8000/admin/polls/question/add/ to create a poll. -
Visit http://127.0.0.1:8000/polls/ to vote.