Code Monkey home page Code Monkey logo

polls-app-django's Introduction

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

polls-app-django's People

Contributors

german-zarate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.