Skip to content

Instantly share code, notes, and snippets.

@sivaa
Last active November 25, 2016 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sivaa/cf29434e5b09a0854f26 to your computer and use it in GitHub Desktop.
Save sivaa/cf29434e5b09a0854f26 to your computer and use it in GitHub Desktop.

Install Python

  • Download and install Python from here

    • Better to install at the default location(C:\Python27). If you are providing custom locations, avoid using spaces
  • Add the below directories to PATH environment variable. For more details, refer here

    • Python Base directory (Example: C:\Python27)
    • Python Scripts directory (Example: C:\Python27\Scripts)
  • It should look similar to this

      [Existing Paths];C:\Python27;C:\Python27\Scripts;
    
  • Open a new command prompt and verify(type python) if the environment variable is set properly.

Install Virtualenv Wrapper

  • Install virtualenvwrapper using pip

      pip install virtualenvwrapper-win
    

Install Git

  • Download and install Git from here
  • During the installation choose the following options
    • Step : "Adjusting your PATH environment"
    • Option to choose : "Use Git from the Windows Command Prompt"
  • Once the setup is done close all the command prompt windows and open it again to reflect git shell command.

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 (Example: C:\Users\<User name>\Envs)

  • 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: C:\djangows\).

  • 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 from here
  • 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