Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block mhsiddiqui

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mhsiddiqui /
Created Aug 18, 2019
Deploy Django using Nginx and Gunicorn/uWSGI - Automation with Fabric
from fabric.api import *
PACKAGE_LIST = ['git', 'supervisor', 'postgresql', 'python-pip', 'nginx'] #add all required packages in this list
DB_USER = "db_user" #define your user here
DB_PASS = "db_pass" #define your password here
DB_NAME = "db_name" #define your database name here
def install_package():
sudo('apt-get update')
sudo('apt-get install %s' % (' '.join(PACKAGE_LIST)))
You can’t perform that action at this time.