A web-based voting platform built with Django, allowing users to create and participate in polls. The application supports user authentication, creating polls, voting on polls, viewing results, and more.
- User Authentication: Users can register, login, and manage their accounts.
- Poll Creation: Users can create their own polls with multiple options.
- Voting System: Users can vote on active polls.
- View Results: View poll results in real-time after voting.
- Backend: Django (Python)
- Frontend: HTML, CSS (Bootstrap for responsive design)
- Database: SQLite (default), can be configured to PostgreSQL or MySQL
- Authentication: Django's built-in authentication system
Follow these steps to set up the project locally.
-
Clone the repository:
git clone https://github.com/Danitilahun/Voting_Django.git cd Voting_Django
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install the dependencies:
pip install -r requirements.txt
-
Run migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the server:
python manage.py runserver