Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasonlovesdoggo/polls
https://github.com/jasonlovesdoggo/polls
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jasonlovesdoggo/polls
- Owner: JasonLovesDoggo
- Created: 2022-04-27T23:33:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-17T01:29:57.000Z (11 months ago)
- Last Synced: 2024-05-01T17:33:49.556Z (8 months ago)
- Language: Python
- Size: 377 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PollR
Django poll app is a full featured polling app. You have to register in this app to show the polls and to vote. If you already voted you can not vote again. Only the owner of a poll can add poll , edit poll, update poll, delete poll , add choice, update choice, delete choice and end a poll. If a poll is ended it can not be voted. Ended poll only shows user the final result of the poll. There is a search option for polls. Also user can filter polls by name, publish date, and by number of voted. Pagination will work even after applying filter.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
python== 3.8 or up and django~=4.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 in your browser
========!! Pizza !!!=========