Skip to content

Instantly share code, notes, and snippets.

View kirantambe's full-sized avatar

Kiran Tambe kirantambe

  • Bangalore, India
View GitHub Profile
@kirantambe
kirantambe / gist:ab106d42d5da438a0407abe41317de12
Created March 20, 2023 10:42 — forked from jaddison/gist:4506070
Setting up gunicorn and celery with gevent, psycogreen for Django
# gunicorn.conf.py: getting gevent and psycogreen running
bind = '127.0.0.1:1437'
accesslog = "<some-path>/logs/gunicorn-access.log"
errorlog = "<some-path>/logs/gunicorn-error.log"
workers = 5
try:
# fail 'successfully' if either of these modules aren't installed
from gevent import monkey
from psycogreen.gevent import patch_psycopg