in the home page or index as in code you will find the newest five polls
The Django Polls App is a web application designed to facilitate the creation, management, and voting on polls. It provides a user-friendly interface for both creating new polls and participating in existing ones. This app demonstrates the fundamentals of web development using Django, a powerful Python-based web framework.
- Poll Creation: Users can create polls with a question and multiple choices.
- Voting: Allows users to vote on choices for each poll.
- Results: Real-time display of poll results, showing percentages with progress bars for each choice.
- Admin Interface: Integrated Django admin interface for easy management of polls and choices.
- Django: Python web framework for backend development.
- Bootstrap: Frontend framework for responsive and appealing UI design.
- SQLite: Default database used by Django for development and testing.
-
Clone the repository:
git clone (https://github.com/ahmeddelattarr/PollsApp_django/tree/main) cd PollsApp_withDjango
-
Setup virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Access the application:
Open a web browser and go to
http://localhost:8000/polls/
- Admin Interface: Access the admin panel at
http://localhost:8000/admin/
to manage polls and choices. - Create Polls: Click on "Create Poll" to add new polls with questions and choices.
- Vote: Users can vote on polls from the poll detail page and see the updated results instantly.
Contributions are welcome! If you want to contribute to this project, please fork the repository and create a pull request with your changes.