Skip to content

Instantly share code, notes, and snippets.

@swizzlevixen
Last active August 29, 2015 14:24
Show Gist options
  • Save swizzlevixen/656fa6b00a24e3e0ccad to your computer and use it in GitHub Desktop.
Save swizzlevixen/656fa6b00a24e3e0ccad to your computer and use it in GitHub Desktop.
Making a virtual environment with Python 3.4 and Django on Mac OS X

Tested on OS X 10.10.4 Yosemite, 2015-07-06

Install Python 3.4 from downloadable installer from https://www.python.org/downloads/

mkvirtualenv --python=/Library/Frameworks/Python.framework/Versions/3.4/bin/python3 envname

(To re-start the virtualenv, workon envname)

Install basics:

pip3 install django==1.8
pip install --upgrade selenium
django-admin.py startproject projectname
cd projectname

Start version control:

git config --global core.editor nano
git init .
echo "db.sqlite3" >> .gitignore
echo "__pycache__" >> .gitignore
echo "*.pyc" >> .gitignore
git add .
git status
git commit

Enter:

First commit: Basic Django config

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