Web application for conducting online polls and surveys.
Iterations
Web application for conducting online polls and surveys.
Web application for conducting online polls and surveys.
Iterations
settings.py
and put their values in a .env
file.is_published
returns true if the current date is on or after the question’s publication date.can_vote
returns true if voting is currently allowed for this question.@login_required
at vote_for_poll()
in polls/views.py
polls/tests.py
to
test_auth.py
test_detail.py
test_index.py
test_models.py
test_voting.py
If someone navigates to the polls detail page for a poll where voting is not allowed, redirect them to the polls index page and show an error message.
is_published
and can_vote
.mysite/urls.py
polls/index.html
to show username when the user is authenticated.vote()
in polls/views.py
by use a decorator.end_date
attribute that is the ending date for voting.4. Users have the number of survey items and the number of responses unrestricted.
As Mr James has posted in the classroom this morning, use "poll" instead of "survey" for now.
Saying the number of responses is unrestricted might make some misunderstand that one "user" can vote more than once, which shouldn't be the case. Perhaps adding a clause like "but they are limited to one vote for each poll" for clarity would be good.
1. Users can view a list of the available polls.
7. Web visitors cannot see the question before the opening date.
If "the question" and "polls" refer to the same thing, using the same term again would make it more clear.
3. Users can view and edit previously submitted polls before the end date.
Writing it this way would make it seem like the poll, that is the question and the choices, are editable until the "end date". If by this you actually meant the choice voted for can be changed, using these words instead would make it clearer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.