Web application for conducting online polls and surveys.
ku-polls's Introduction
ku-polls's People
ku-polls's Issues
raise an error massage
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
User can vote only one time.
- When users vote at the polls they can vote only one choice and one time.
Part-1!
Create unit tests for is_published and can_vote
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!!!
Externalize configuration data
- Remove the value of SECRET_KEY and DEBUG from settings.py and put their values in a .env file.
only an authenticated user can submit a vote
- Users must log in before vote the polls
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
Improve page layout
- Add Navbar
- Improve page layout with Bootstrap 4
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
PART - 7!!!!!
Customize the admin form
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
Writing your first Django app, part 1:
- Creating a project
- The development server
- Creating the Polls app
- Write your first view
Create a polls/tests
- Create more tests: polls/tests/
test_index.py
test_poll_dates.py
test_auth.py
test_voting.py
Add an authentication system.
- Create a signup, login, and logout system.
PART - 4
- Write a minimal form
- Use generic views: Less code is better
- Amend views
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.