Skip to content

Instantly share code, notes, and snippets.

@fcurella
Created September 9, 2011 19:47
Show Gist options
  • Save fcurella/1207150 to your computer and use it in GitHub Desktop.
Save fcurella/1207150 to your computer and use it in GitHub Desktop.
This script installs virtualenv and pip, and create a virtualenv with django and your project
#!/bin/bash
PROJ_DIR=$1
PROJ_NAME=$2
easy_install virtualenv pip;
mkdir -p $PROJ_DIR;
virtualenv $PROJ_DIR
source $PROJ_DIR/bin/activate
pip install django;
cd $PROJ_DIR; django-admin.py startproject $PROJ_NAME
chmod +x $PROJ_DIR/$PROJ_NAME/manage.py
@fcurella
Copy link
Author

fcurella commented Sep 9, 2011

Usage: django_bootstrap <dir_name> <project_name>

This command will install virtualenv and pip system-wide (or update them), and will create a virtualenv with Django already installed for your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment