This is a simple Django-based web application that allows users to vote on various categories. Users can view available categories, vote for their favorite items in each category, and see the voting results in real-time.
- User-friendly interface for voting on categories.
- Real-time updates of voting results.
- Secure user authentication and authorization.
- SQLite database for data storage.
- Responsive design for mobile and desktop.
- Python (3.6 or higher)
- Django (3.0 or higher)
-
Clone this repository to your local machine.
git clone https://github.com/your-username/voting-app.git
-
Navigate to the project directory.
cd voting-app
-
Create a virtual environment (optional but recommended).
python -m venv venv source venv/bin/activate
-
Install project dependencies.
pip install -r requirements.txt
-
Apply database migrations.
python manage.py migrate
-
Create a superuser account to access the Django admin panel.
python manage.py createsuperuser
-
Start the development server.
python manage.py runserver
-
Open your web browser and access the application at
http://127.0.0.1:8000
.
- Browse the available categories on the homepage.
- Click on a category to view its items and vote for your favorite.
- Check real-time voting results on the results page.
- Use the Django admin panel to manage categories and items.
-
Signup Page: New user Create a new Account.
-
Signin Page: Existing user login here.
-
Category Page: Browse categories and select one to vote.
- Vote Page: Vote for your preferred category.
- Result Page: View the voting results.
Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m 'Add feature'
- Push to the branch:
git push origin feature-name
- Create a pull request with a clear description of your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Django community for their excellent documentation and resources.