Skip to content

Instantly share code, notes, and snippets.

View doziestar's full-sized avatar
🎯
Focusing on distributed systems

Chidozie C. Okafor doziestar

🎯
Focusing on distributed systems
View GitHub Profile
@doziestar
doziestar / docker-compose.yml
Last active August 16, 2023 14:28
tls: failed to verify certificate: x509: certificate signed by unknown authority
`docker-compose`
server:
container_name: hubhub-server
# image: '${DOCKER_USER}/hubhubserver:latest'
extra_hosts:
- host.docker.internal:host-gateway
restart: always
build:
context: .
@doziestar
doziestar / runQquery.py
Created January 19, 2022 07:26
Django Query with Q objects
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)