Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get an api key and api secret token to use this
script, you can do so by registering a twitter application at
https://dev.twitter.com/apps
#!/bin/bash
NAME="APP_NAME" # Name of the application
DJANGODIR=ENV_ROOT/ENV_NAME/PROJECT_NAME # Django project directory
SOCKFILE=ENV_ROOT/ENV_NAME/run/gunicorn.sock # we will communicte using this unix socket
USER=root # the user to run as
GROUP=root # the group to run as
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
DJANGO_SETTINGS_MODULE=PROJECT_NAME.settings # which settings file should Django use
DJANGO_WSGI_MODULE=PROJECT_NAME.wsgi # WSGI module name