workers = 2
bind = 'unix:/tmp/my_project_name.sock'
errorlog = '/path/to/logs/gunicorn.error.log'

def when_ready(server):
    from django.core.management import call_command
call_command('validate')
Adding a hook to Gunicorn for raven-python (sentry client)