https://github.com/the-akira/django-polls
Django Polls is an App inspired by the Django Documentation Tutorial
https://github.com/the-akira/django-polls
Last synced: about 2 months ago
JSON representation
Django Polls is an App inspired by the Django Documentation Tutorial
- Host: GitHub
- URL: https://github.com/the-akira/django-polls
- Owner: the-akira
- Created: 2022-09-26T19:58:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T18:53:21.000Z (over 2 years ago)
- Last Synced: 2025-01-18T18:46:26.320Z (3 months ago)
- Language: Python
- Size: 1.22 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Polls
Django Polls is an App inspired by the [Django Documentation Tutorial](https://docs.djangoproject.com/en/4.1/intro/tutorial01/).
## Installation
Install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/).
### Clone the Repository
```
git clone https://github.com/the-akira/Django-Polls.git
```### Inside the Main Directory
Build and run the application
```
docker-compose up
```You can now open your Web Browser and navigate to `http://127.0.0.1:8000/` to see the Web Application.
### Unit Tests
Accessing **polls** container interactive shell
```
docker exec -it polls /bin/sh
```Running the tests
```
python manage.py test
```### Database
Accessing **polls_db_1** container interactive shell
```
docker exec -it polls_db_1 /bin/sh
```Starting the SQL command line prompt
```
psql -U postgres
```Listing databases
```
\list
```Connecting to a database
```
\connect postgres
```Listing tables
```
\dt
```