Last active
December 9, 2018 23:31
-
-
Save lpf23/5ffca94a05d40ed671f502c0648f19a5 to your computer and use it in GitHub Desktop.
Django Environment Setup
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
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