Simple Polling System in Python using Django Framework Free Source Code

Language

Simple Polling System using Django in Python

This application is entitled Simple Polling System. This is a simple web-based application developed in Python and Django Framework. The main goal of this project is to create a certain web application that serves as a simple voting system that lets the users record their chosen choice and automatically reflects the polling result. The application has a simple and pleasant user interface with the help of the Bootstrap Framework and consists of user-friendly features and functionalities which give the end-users a better experience while using the web application.

About the Simple Polling System

This was developed using the following Libraries:

  • Python
  • Django
  • SQLite3
  • HTML
  • CSS
  • Bootstrap
  • and some Python Modules/Libraries

This Simple Polling System Project is only accessible to anyone. This application requires the users to register and log in with their valid credentials to gain access to the features and functionalities of the application. The possible users can simply create their accounts by filling in all the required fields on the registration form. Here, the Questions for Pooling can be only populated by the site administrator at the Django's Admin Site. The admin site only allows the super users to access and manage data. The Administrators are the ones who are in charge of adding, updating, and deleting question data. Users can list all of the Questions for Polling. Users have the privilege to view the question's polling result, vote, or re-vote. On the question's result page, the system displays the question details including the list of choices and a chart for the total votes per choice.

Features

  • Login
  • Home Page
  • Question Management (Django Admin Panel Only)
    • Add New Question
    • List All Questions
    • Edit Question Details
    • Add choices to the questions
    • Delete Question
  • User Management (Django Admin Panel Only)
    • Register New User
    • List All Users
    • Edit User Details
    • Manage User Profile
    • Delete User
  • List All Questions for Polling
  • Vote for a Question
  • View Question's Result
  • Revote
  • Profile
  • Update Profile Details
  • Change Password
  • Logout

Sample Snapshots

Login Page

Simple Polling System

Registration Page

Simple Polling System

Home Page

Simple Polling System

Polling Questions Page

Simple Polling System

Polling Result Page

Simple Polling System

Profile Page

Simple Polling System

The system source code is free to download on this project and only for educational purposes only. The source code is not that so tricky which means not that difficult to understand. Feel free to download and modify the source code the way you wanted.

How to Run

Download/Install the following

  • Python (I used v3.9.1)
  • PIP (for python modules installation)

Setup/Installation

  1. Download and Extract the provided source code zip file. (download button is located below)
  2. Open your Terminal/Command Prompt window. (make sure to add "python" and "pip" in your environment variables)
  3. Change the working directory to the extracted source code folder. i.e. cd C:\Users\Personal-23\Desktop\django_sps
  4. Run the following commands:
    • pip install -r requirements.txt
    • python manage.py migrate
    • python manage.py runserver
  5. Keep the terminals open and running.
  6. Open a web browser and browse the Simple Polling System http://localhost:8000/ or http://127.0.0.1:8000/

http://127.0.0.1:8000/admin for the Django's Admin Site.

Default Admin Access

Username: admin
Password: admin123

DEMO VIDEO

That's it! I hope this will help you with what you are looking for. Maybe you'll find this Simple Polling System useful and can help you with your future Python Django Projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment