Git Product home page Git Product logo

ku-polls's Introduction

ku-polls's People

Contributors

bouncyyahomie avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ku-polls's Issues

PART - 3

  • Writing more views
  • Write views that actually do something
  • Raising a 404 error
  • Use the template system
  • Removing hardcoded URLs in templates
  • Namespacing URL names

Add new two method

  • is_published returns true if current date is on or after question’s publication date
  • can_vote returns true if voting is currently allowed for this question

PART 6

Customize your app’s look and feel!!!

Improve navigation.

  • On polls index page, add “vote” and “results” links for each question.
  • Only show “vote” link for a poll where voting is allowed.
  • On the polls detail page, add a “Back to List of Polls” link so person can go back without voting. You can use your choice of text instead of “Back to List of Polls”.
  • On the voting results page, also add a “Back to List of Polls” link.

PART - 5

  • Writing our first test
  • Create a test to expose the bug
  • Running tests

PART-2!!

  • Database setup
  • Creating models
  • Activating models
  • Playing with the API
  • Introducing the Django Admin
  • Creating an admin user
  • Start the development server
  • Make the poll app modifiable in the admin

Some issues in requirements

You used a variety of nouns: "user", "everyone" and "web visitors". How are they different? If they aren't, I suggest using just one term that best describes the person. People will assume they are different because there is no reason to use different words if the intended meaning is the same; this isn't IELTS or some essay you need to paraphrase or change things up.

If a user can't vote on a poll after its "closing date", I suggest you include this in the requirement as well. You should be explicit and not leave things up to the reader to guess.

Add an end_date

  • Create an atrribute end_date for selected ending date to voting

Create a polls/tests

  • Create more tests: polls/tests/
    test_index.py
    test_poll_dates.py
    test_auth.py
    test_voting.py

PART - 4

  • Write a minimal form
  • Use generic views: Less code is better
  • Amend views

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.