Skip to content

Instantly share code, notes, and snippets.

@sivaa
Created September 22, 2014 15:55
Show Gist options
  • Save sivaa/7a531022706ac746d944 to your computer and use it in GitHub Desktop.
Save sivaa/7a531022706ac746d944 to your computer and use it in GitHub Desktop.

Python

  • All the linux distributions will have Python installed by default. The version can be verified using the python command.

Install Setup tools

  • Install pip and related packages

      sudo apt-get install python-pip 
    
  • Install virtualenvwrapper

      sudo pip install virtualenvwrapper
    
  • Configure virtualenvwrapper by adding the following lines in the .bashrc(vim ~/.bashrc)

      export WORKON_HOME=$HOME/.virtualenvs
      source /usr/local/bin/virtualenvwrapper.sh
    
  • Enable it by executing source ~/.bashrc

Install Git

  sudo apt-get install git

Setup the Workspace

  • Create a new virtual environment using virtualenv.

      mkvirtualenv pycon-dj-workshop
    
  • The environment directory would be created under User's home directory (~/.virtualenvs)

  • It will automatically start the environment. If you have closed the command prompt and opened it, use the following command

       workon pycon-dj-workshop
    
  • Create a separate directory for the workspace and navigate to it(Example: ~/ws).

  • Clone the repository from the github

       git clone https://github.com/sivaa/pycon2014-django-workshop.git
    
  • Navigate to the repository (cd pycon2014-django-workshop)

  • Install the requirements from requirements.txt file

       pip install -r requirements.txt
    
  • Verify the installation of dependencies

      pip freeze
    

Other Tools

  • Install SQLite Browser using sudo apt-get install sqliteman
  • Install latest FireFox
  • Your favorite text editor / IDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment