A sleek, interactive polling application built with Django - create, vote, and analyze polls with ease.
This elegant polling system allows users to:
- 📋 Browse through available polls with an intuitive interface
- ✅ Cast their vote on questions that matter
- 📊 View real-time results with visual feedback
Built as a showcase of Django's powerful features, this application demonstrates:
- 🗄️ Robust data modeling and relationships
- 🌐 Efficient class-based views
- 🔗 Clean URL routing patterns
- 🎨 Responsive templates
- 📝 Secure form handling
- 👑 Customizable admin interface
- Modern Interface: Clean design focused on usability
- Interactive Voting: Seamless voting experience with immediate feedback
- Admin Dashboard: Powerful backend for poll management
- Mobile-Friendly: Responsive design works on all devices
polls/
├── models.py # Data models (Question, Choice)
├── views.py # View controllers
├── urls.py # URL routing configuration
├── admin.py # Admin interface setup
├── apps.py # Application configuration
├── tests.py # Unit tests
└── templates/ # HTML templates
└── polls/
├── index.html
├── detail.html
└── results.html
-
Clone the repository
git clone https://github.com/yourusername/django-polls-app.git cd django-polls-app -
Set up virtual environment
python -m venv venv venv\Scripts\activate
-
Install dependencies
pip install django
-
Apply migrations
cd djangotutorial python manage.py migrate -
Create admin user
python manage.py createsuperuser
-
Start the development server
python manage.py runserver
-
Access the admin panel
- Visit
/adminand log in with your superuser credentials - Create new polls with multiple choice options
- Visit
-
Explore the polls
- Browse to the main page to see all available polls
- Click on any poll to view details and voting options
-
Vote and view results
- Select your preferred option and submit your vote
- View real-time results with vote counts
- Backend: Python 3, Django
- Frontend: HTML5, CSS3
- Database: SQLite (development), PostgreSQL (production option)
- Deployment: AWS Elastic Beanstalk
This application is deployed on AWS Elastic Beanstalk: