Coder Social home page Coder Social logo

ku-polls's Introduction

ku-polls's People

Contributors

ttxking avatar jbrucker avatar

Watchers

 avatar

ku-polls's Issues

User not clear

Your requirements are mostly good, but the word "user" isn't clear.
In some cases you mean someone who views or votes on a poll.
In others you mean someone who creates a poll question.

Use different words for these 2 cases, or clarify in requirement.
In some requirements you wrote "web visitor" as alternative term for user.
That would be OK.

Improve Security

remove the value of SECRET_KEY and DEBUG from settings.py and put their values in a .env file

Restrict vote

  • Restrict each authenticated user to 1 vote per poll
  • Only authenticated user can vote

User authentication

User authentication will be done using the username-password backend ModelBackend.

Add two methods for Question class

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

Add logging

  • user login or logout. An “info” level log message, including username and IP address.
  • unsuccessful login attempt (username or password incorrect). a “warning” log message, including username entered and IP address.
  • user submits a vote for a poll. “info” log message including username and poll id voted on (but not choice id).
  • all log messages should include the date and time
  • log to the console,
  • use loggers

Improve navigation

  • On the 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 website visitors can go back without voting.
  • On the voting results page, also add a “Back to List of Polls” link.

What's a poll?

Still some not clear items about "poll" or "survey" or "question",
and whether the opening/closing date apply to all the questions
or individual questions.

I posted on Google Classroom about this, since it something
everyone should do.

Activating Model

15 mins - Create a database schema, Create a Python database-access API for accessing Question and Choice objects

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.