Last active
May 16, 2016 18:32
-
-
Save dbrack/a66e5abae0db93b58d22f1de1b0d9040 to your computer and use it in GitHub Desktop.
Revisions
-
dbrack renamed this gist
May 16, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
dbrack revised this gist
May 16, 2016 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,6 @@ ``` # virtualenvwrapper export WORKON_HOME=~/.virtualenvs source /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh export PIP_VIRTUALENV_BASE=$WORKON_HOME export PIP_RESPECT_VIRTUALENV=true -
dbrack revised this gist
May 16, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Restart Shell/Terminal **Create virtual env** `mkvirtualenv --distribute venv-name` **Add Django Project to PythonPath for your venv** -
dbrack revised this gist
May 16, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,14 +7,14 @@ `pip install virtualenvwrapper` **Add the following to your .zshrc/bashrc** ``` # virtualenvwrapper export WORKON_HOME=~/.virtualenvs export PROJECT_HOME=~/Files/Projects source /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh export PIP_VIRTUALENV_BASE=$WORKON_HOME export PIP_RESPECT_VIRTUALENV=true ``` Restart Shell/Terminal **Create virtual env** -
dbrack revised this gist
May 16, 2016 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,12 +2,13 @@ **Install virtualenv/virtualenvwrapper** `pip install virtualenv` `pip install virtualenvwrapper` **Add the following to your .zshrc/bashrc** ## virtualenvwrapper export WORKON_HOME=~/.virtualenvs export PROJECT_HOME=~/Files/Projects source /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh -
dbrack revised this gist
May 16, 2016 . 1 changed file with 18 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,11 @@ #Python virtual env / Django OS X **Install virtualenv/virtualenvwrapper** pip install virtualenv pip install virtualenvwrapper **Add the following to your .zshrc/bashrc** # virtualenvwrapper export WORKON_HOME=~/.virtualenvs @@ -15,27 +16,31 @@ export PIP_RESPECT_VIRTUALENV=true Restart Shell/Terminal **Create virtual env** mkvirtualenv --distribute venv-name **Add Django Project to PythonPath for your venv** ``` cd projectname && add2virtualenv `pwd` ``` **Activate virtualenv** `workon venv-name` **Install Software via pip** `pip install Django` `pip install https://www.djangoproject.com/download/1.5c1/tarball/` **Dump dependencies** `pip freeze > requirements.txt` **Install dependencies in production** `pip install -r requirements.txt` -
dbrack created this gist
May 16, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ #Python virtual env / Django OS X Install virtualenv/virtualenvwrapper pip install virtualenv pip install virtualenvwrapper Add the following to your .zshrc/bashrc # virtualenvwrapper export WORKON_HOME=~/.virtualenvs export PROJECT_HOME=~/Files/Projects source /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh export PIP_VIRTUALENV_BASE=$WORKON_HOME export PIP_RESPECT_VIRTUALENV=true Restart Shell/Terminal Create virtual env mkvirtualenv --distribute venv-name Add Django Project to PythonPath for your venv cd projectname && add2virtualenv `pwd` Activate virtualenv workon venv-name Install Software via pip pip install Django pip install https://www.djangoproject.com/download/1.5c1/tarball/ Dump dependencies pip freeze > requirements.txt Install dependencies in production pip install -r requirements.txt