Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.37 KB

File metadata and controls

25 lines (18 loc) · 1.37 KB

survey-point

This is a full featured polling app. A user has to register in this app to show the polls and to vote. If a user has already voted, they can not vote again. Only the owner of a poll can add a poll, edit a poll, update a poll, delete a poll, add a choice, update a choice, delete a choice, and end a poll. If a poll is ended, it can not be voted. The ended poll only shows the user the final result of the poll. There is a search option for polls. Also, users can filter polls by name, publish date, and by number of votes. Pagination will work even after applying a filter.

Prerequisites

python== 3.5 or up and django==2.0 or up

To migrate the database open terminal in project directory and type

python manage.py makemigrations
python manage.py migrate

To use admin panel you need to create superuser using this command

python manage.py createsuperuser

To Create some dummy text data for your app follow the step below:

pip install faker python manage.py shell import seeder seeder.seed_all(30)

Here 30 is a number of entry. You can use it as your own

To run the program in local server use the following command

python manage.py runserver

Then go to http://127.0.0.1:8000/home in your browser