Skip to content

infinitecoder1729/Polls-App-Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polls App

The project uses Django Framework in Python and MySQL as database.

A) The Project Contains 2 Apps :

  1. The Main Polls App.
  2. A Landing Page for the user on launching the server.

B) The Following views have been created in the Polls App:

  1. Home Page (named home)
  2. Detail Page (A page containing detailed description of Every Question)
  3. Results Page (Live Detail of which options of particular question has how many votes)
  4. Vote (To record the Selected Choice)

C) The Following Classes are created for Polls App :

  1. Question (Contains the Question Text [255 charecters] and Date Published)
  2. Choice (Contains Question ID [Foreign Key Reference], Text [255 chars], Votes [No. of Votes for the particular choice])

D) Through Admin.py, Django Default UI has been enabled and can be used to Feed New Questions and Choices

E) Templates have been written in HTML for Landing Page, Polls HomePage, Detail Page, and Results Page

F) ScreenShots of the Project :

PS: The UI is Pretty basic

  1. Landing Page : image

  2. Admin Page to Add Poll Questions and Choices a) HomePage : image

b) Add Question : image

c)Add Choices : image

  1. Polls Homepage for User : image

  2. Voting Page For a Question : image

  3. After Successful Voting : image

G) MySQL Migrations :

image