Skip to content

Instantly share code, notes, and snippets.

@anilshanbhag
Created January 20, 2013 11:06
Show Gist options
  • Save anilshanbhag/4577943 to your computer and use it in GitHub Desktop.
Save anilshanbhag/4577943 to your computer and use it in GitHub Desktop.

DJANGO INSTALLATION

These instructions should be followed with grain of salt. Take care to understand what is going on.

Starting out - For Ubuntu users - Installs important stuff

  • sudo apt-get install curl sox mysql-server mysql-client libmysqlclient16-dev git-core apache2 libexpat1 ssl-cert unixodbc-dev libmyodbc phpmyadmin mercurial
  • sudo apt-get install python-setuptools python-dev build-essential python-mysqldb python-tz python-imaging

Starting out - For Mac OSX

  • Install SourceTree
  • Install Homebrew
  • Check homebrew formula pages to see if you need anything

Now common to both :

  • sudo easy_install pip
  • sudo pip install virtualenv

Now you have vitrualenv installed

  • cd ~
  • mkdir virtualenvs
  • cd virtualenvs
  • virtualenv tester
  • source bin/activate

At this points your terminal path should at the start have (tester). Now try :

  • pip install django==1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment