Skip to content

Instantly share code, notes, and snippets.

@lpf23
Last active December 9, 2018 23:31
Show Gist options
  • Save lpf23/5ffca94a05d40ed671f502c0648f19a5 to your computer and use it in GitHub Desktop.
Save lpf23/5ffca94a05d40ed671f502c0648f19a5 to your computer and use it in GitHub Desktop.
Django Environment Setup
1. $> brew install python3
2. add to .zshrc and/or .bashrc:
export PATH=$HOME/Library/Python/3.7/bin:$PATH
3. $> pip3 install --user pipenv
4. $> pip3 install virtualenv
5. $> pip3 install virtualenvwrapper
6. add to .zshrc and/or .bashrc:
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/code
source /usr/local/bin/virtualenvwrapper.sh
7. $> mkproject --python=`which python3` projectname
7a. to force recreation of the project:
$> mkproject -f --python=`which python3` projectname
8. $> workon projectname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment