django-pollapp's People
django-pollapp's Issues
Fix TEMPLATE_DIRS in settings.py
TEMPLATE_DIRS should be a tuple of strings, I am not able to even start the project.
Move auth templates out of polls.
Move database settings to local_settings
DATABASES should not be kept in settings.py. Create another file called local_settings.py and move db settings to that file. Import local settings in your settings.py
Move authentication functionality out of polls
Authentication functionality should be in a separate app.
Add project description in README
Add a requirements file
Login view does not actually log in the user.
Your login view only checks a valid form and shows all the polls. You are not actually loggin in the user. So, if the user wants to see all the polls again he has to login again, which is wrong. If he logs in once, he shouldn't be required to log in again.
also add a logout view.
Can you push your commits.
Seems you haven't pushed your commits for some time. Please keep pushing as you commit anything.
Redirect to login page after logout.
Add coveralls.io based coverage
Also add travis build status indicator and coveralls.io coverage indicator to the README.
You haven't added a view where user can see all the polls they created and the votes they gave.
Polls results page does not show the text for choice.
It says " -- 0 votes", doesn't tell which choice got 0 votes.
Results page do not get updated with the change vote.
eg:
Poll- What is your favourite ide?
Choices are Vim, Emacs and Komodo.
I first vote fo vim. then result shows that 1 vote has been cast for vim and 0 vote for other two.
Then I change my vote to "Emacs", still the result says that 1 vote has been cast for vim and 0 vote for Emacs.
Add a logout link at the top so its visible from all the pages.
Also, redirect the user to the login page once logout is done.
Change login view.
Your login view works, but it is mixing AuthenticationForm as well as authenticate() provided by django.
If you use AuthenticationForm(), you should not be required to use authenticate(), find out how you can get the user from AuthenticationForm instance.
Or, don't use AuthenticationForm if you want to use authenticate().
Make sure your files conform to pep8
If the user is already logged in, redirect to index page.
Even if I am logged in and I go to http://127.0.0.1:8000/, I see the login form again. This is confusing. You should redirect to index page if the user is already logged in.
'next' in the url is not being honoured.
Consider you are not logged in.
Then I try this url http://127.0.0.1:8000/polls/1/results/, since I am not logged in it will take me to http://127.0.0.1:8000/?next=/polls/1/results/.
After successful login I should be redirected to the 'next' parameter in the url which in this case is the results of Poll 1.
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.