Skip to content

This repository houses a Django application designed for creating, managing, and voting on polls. It features a user-friendly interface for poll creation, real-time voting functionality, and dynamic result visualization. Built with Django's powerful framework and Bootstrap for responsive design.

Notifications You must be signed in to change notification settings

ahmeddelattarr/PollsApp_django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django Polls App

Home Image in the home page or index as in code you will find the newest five polls

Description

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.

Features

  • 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.

Technologies Used

  • 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.

Screenshots

choices 1

results 2

Installation

  1. Clone the repository:

    git clone (https://github.com/ahmeddelattarr/PollsApp_django/tree/main)
    cd PollsApp_withDjango
  2. Setup virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install dependencies:

    pip install -r requirements.txt
  4. Apply migrations:

    python manage.py migrate
  5. Run the development server:

    python manage.py runserver
  6. Access the application:

    Open a web browser and go to http://localhost:8000/polls/

Usage

  • 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.

Contributing

Contributions are welcome! If you want to contribute to this project, please fork the repository and create a pull request with your changes.

About

This repository houses a Django application designed for creating, managing, and voting on polls. It features a user-friendly interface for poll creation, real-time voting functionality, and dynamic result visualization. Built with Django's powerful framework and Bootstrap for responsive design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published