Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 825 Bytes

File metadata and controls

44 lines (33 loc) · 825 Bytes

Core (Polls)

A polling application built with Django.

Features

  • Create questions with multiple choices
  • Vote on questions (atomic counting with F expressions)
  • View results with progress bars
  • Class-based views (ListView, DetailView)
  • Pagination support

URL

/core/

Data Model

erDiagram
    Question {
        int id PK
        varchar question_text
        datetime pub_date
    }

    Choice {
        int id PK
        int question_id FK
        varchar choice_text
        int votes
    }

    Question ||--o{ Choice : "has"
Loading

Key URLs

URL Description
/core/ App intro with ER diagram
/core/questions/ List of published questions
/core/questions/<id>/ Vote on a question
/core/questions/<id>/results/ View vote results