A full-featured polling application built with Django that allows users to create, vote on, and view poll results with real-time visualizations.
Django polls website implementing models, views, templates, forms, and authentication for voting and adding questions
- Language: Python (recommendation:
Python 3.13+) - Libraries: Django 6+, SQLite
- Tools: Git, Pycharm
-
User Authentication: Register, login, logout, and password reset functionality
-
Poll Management:
- Create polls with multiple choice questions
- Set poll duration and visibility
- Edit and delete your own polls
-
Voting System:
- Single vote per user per poll
- Anonymous voting option
- Real-time results visualization
git
python 3.13+
Django 6.0+Follow these steps to run project locally.
Clone this repository to your desired folder:
# 1. Clone
git clone https://github.com/Dimah-code/pollify.git
cd pollify
# 2. create a virtual environment
python -m venv venv
# 3. Activate it:
# macOS / Linux (bash / zsh)
source venv/bin/activate
# Windows
.\venv\Scripts\Activate.ps1
# 3. Install dependencies
pip install -r requirements.txtMake migrations:
python3 manage.py makemigrationsNow migrate:
python3 manage.py migrateCreate a superuser:
python3 manage.py createsuperuserTo run the project, execute the following command:
Run server on localhost:
python3 manage.py runserverOpen it on browser:
Go to http://127.0.0.1:8000/ on your favorite web-browser
Contributions are welcome! see here for more information.
If this repo helped you practice Django, please give it a ⭐ and share with others learning Django. Issues, PRs and suggestions are welcome!
This project is MIT licensed.
