Created
September 9, 2011 19:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.