This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`docker-compose` | |
server: | |
container_name: hubhub-server | |
# image: '${DOCKER_USER}/hubhubserver:latest' | |
extra_hosts: | |
- host.docker.internal:host-gateway | |
restart: always | |
build: | |
context: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db.models.query import Q | |
from django.db import models | |
# to query a database table, you can use the Django ORM. | |
# assuming you have a table called "users" with the following fields: | |
class User(models.Model): | |
first_name = models.CharField(max_length=50) | |
last_name = models.CharField(max_length=50) | |
email = models.EmailField(max_length=254) |