Skip to content

Instantly share code, notes, and snippets.

View josemarimanio's full-sized avatar
👋

Jose Mari Manio josemarimanio

👋
  • Quezon City, Philippines
View GitHub Profile
@josemarimanio
josemarimanio / gunicorn.py
Created October 8, 2024 19:09 — forked from HacKanCuBa/gunicorn.py
A config file of gunicorn(http://gunicorn.org/) contains fundamental configuration.
"""Gunicorn config file.
by HacKan (https://hackan.net)
Find it at: https://gist.github.com/HacKanCuBa/275bfca09d614ee9370727f5f40dab9e
Based on: https://gist.github.com/KodeKracker/6bc6a3a35dcfbc36e2b7
Changelog
=========
See revisions to access other versions of this file.
@josemarimanio
josemarimanio / README.rst
Last active September 11, 2020 01:51
Django: Cascade deletion to related one-to-one fields

Django: Cascade deletion to related one-to-one fields

This gist assumes that an app named base exists and is included in INSTALLED_APPS via base.apps.BaseConfig.

base.utils.delete_related_onetoonefield works by looping thru the model instance's available fields and deleting all non-null django.db.models.fields.related.OneToOneField instances.

@josemarimanio
josemarimanio / install_pyenv_mac_zsh.rst
Created May 13, 2020 12:13
Installing pyenv on macOS for Zsh using Homebrew