GithubHelp home page GithubHelp logo

django-pollapp's People

Contributors

sivakothuru avatar

Watchers

 avatar

django-pollapp's Issues

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

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.

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.

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().

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.