https://github.com/rasbeetech/vote_app
Voting app
https://github.com/rasbeetech/vote_app
Last synced: about 1 month ago
JSON representation
Voting app
- Host: GitHub
- URL: https://github.com/rasbeetech/vote_app
- Owner: RasbeeTech
- Created: 2021-03-29T20:12:33.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-05T20:29:52.000Z (about 5 years ago)
- Last Synced: 2025-01-25T10:26:13.120Z (over 1 year ago)
- Language: Python
- Size: 852 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vote_App
Voting app
Pyton version 3.8.7
Django version 3.1.7
## About
A web-application developed with Python/Django that takes polls and tallies user responses.
## Purpose
Delve into the realm of Django to develop a voting_app. In doing so, aim to learn effective web-development techniques and useful tools.
## Run()
### install polls package:
* In order for the application to run as intended, the polls app must be installed first. In the project directory run the following command:
```bash
python3 -m pip install --user django-polls/dist/django-polls-0.1.tar.gz
```
### execute program:
1. In Terminal, navigate to the 'vote_app' directory
2. execute the following command:
```bash
python3 manage.py runserver
```
3. In your choice web broswer, enter the address *'127.0.0.1:8000/polls'*
### Login to admin
* Create superuser using the command:
```
python3 manage.py createsuperuser
```
* login with default: U: admin P: Passw0rd
### Add new questions/choices
1. Make sure your logged into the admin page using either a created superuser or the default admin credentials.
2. In *'127.0.0.1:8000/admin'* navigate to the Questions change list.
3. From here you can change a question and its answers or add new ones.