Skip to content

A simple django polling application from the django documentation

Notifications You must be signed in to change notification settings

eyobofficial/poll-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DJANGO BASIC POLLING APP

Part 1 - Request & Response

Topics covered:

  • Creating a Django project
  • Creating a Django app
  • Applying initial migrations
  • Create first views
  • Create a URL patterns to the polls app

Part 2 - Database & Models

  • Setup default database engine to use
  • Create Django models
  • Working with Django ORM API
  • Create new migrations
  • Apply migrate
  • Generate Django's built in admin interface

Part 3 - Views

  • Writing basic views
  • Writing URLConfs and app namespacing
  • Using the render, get_object_or_404 & get_list_or_404 shortcuts
  • Writing basic templates
  • Removing hard coded urls in templates

Part 4 - Forms

  • Creating a form template for voting
  • Writing 'votes' view function to handle the voting form

Part 5 - Automated Testing

  • Create a test to check whether published_recently() returns False for questions with future pub_date
  • Create more automated tests for views and modify the logic to pass the tests

Part 6 - Static Files

  • Serving static files (images, css styles and JavaScripts)

Part 7 - Customizing Admin Site

  • Registering models
  • Display related models inline (Choice model inside Question model)
  • Add search fields to admin change lists
  • Editing of admin templates headers

About

A simple django polling application from the django documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published