-
Notifications
You must be signed in to change notification settings - Fork 0
Iteration 2 Plan
Pakorn Laohakanniyom edited this page Sep 13, 2022
·
3 revisions
The KU polls has more functionality features such as the home button, end date for polls. Improve webpage navigation and layout. Exclude sensitive configuration by externalize configuration.
- Each poll question has a expiration date (end date) and no voting allowed after the end date.
- A visitor can view result without voting.
- A visitor can return to polls list screen from any page.
- If A visitor goes to the base URL redirect them to the index page.
- A visitor Can't vote after the poll is end or unpublished.
- Separate configuration data from code for more security.
- Ending date of a poll is enforced.
- User can easily return to polls list from any page. Does not need to use browser "Back" button.
All tasks should be recorded on Task Board for Iteration 2.
- Update Question model.
- add
end_date
attribute that is the ending date for voting. - add
is_published
method to check current date is on or after question’s publication date. - add
can_vote
method to check voting is allowed for this question.
- add
- Write unit tests to test new features.
- Redirect detail page when voting is not allowed and if someone goes to the base URL redirect to index page.
- Improve the appearance.
- Externalize configuration.
- Unable to vote unavailable polls.
- User can see the result without voting.
- User can see the result after polls end.
- Application passes all unit tests.
- All navigation links work correctly.
- User interface is easier to use
successfully implemented with all the requirements. User interface improved from the iteration 1. Redirects are offered at appropriate places to improve site navigation.
As I'm not good at writing HTML, it makes the code look messy and there may be some mistake on web pages.
I have learn more a lot of Django, html, and CSS (how to redirect, template language for Django).
- Study more about HTML
- Learn more about templating on Django