Boston Python Workshop/Friday handout: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Paulproteus
imported>Paulproteus
Line 62: Line 62:
* [[Boston Python Workshop/Friday handout/OS X 10.6 or 10.5|OS X 10.6 or 10.5]] (Snow Leopard or Leopard). [http://www.wiki.devchix.com/index.php?title=Determining_your_OS_X_version Click here if you're not sure what version of OS X you have].
* [[Boston Python Workshop/Friday handout/OS X 10.6 or 10.5|OS X 10.6 or 10.5]] (Snow Leopard or Leopard). [http://www.wiki.devchix.com/index.php?title=Determining_your_OS_X_version Click here if you're not sure what version of OS X you have].
* [[/Windows|Windows]] (XP, Vista, or 7)
* [[/Windows|Windows]] (XP, Vista, or 7)
* [[/Ubuntu and Debian|Ubuntu and Debian]]

=== Python ===

* FIXME

=== Git ===

* For Mac OS, follow the "Git" section at http://www.wiki.devchix.com/index.php?title=OS_X_10.6_%28Snow_Leopard%29_-_Rails_3#Install_git

=== Django modules ===

* also epic FIXME


== Section 3: Configuring your accounts on the web ==
== Section 3: Configuring your accounts on the web ==

Revision as of 21:23, 3 March 2011

Objective

After going through this setup document, you will have a Python, git, and Django environment that lets you write Python code locally. You will be able to use Github.com and git to track changes to the code you write.

This document is available on the web; if you have a printed copy, you can see the URL on the last page. You can always refer back to it, or show it to other people.


ColorWall Setup

The ColorWall project has no dependencies on common, modern Linux, OS X, and Windows distributions. To confirm that you have no dependencies to install, run:

import Tkinter

at a Python prompt. If that command results in an ImportError, let a staff member know and we'll help get your dependencies set up.


Section 1: Accounts on the web

Time: 15 minutes, hopefully.

You're going to need accounts on:

  • Alwaysdata.com: This is a French web hosting company. Their free account level has Django support, so you'll use it to run your code and let other people access it over the web.
  • Github.com: This is the most popular hosting company for git, a popular version control system. You will use them to store versions of your code.

Alwaysdata account

Alwaysdata.com lets you create a free hosting account. You'll give them your name and email address and set a password that you'll use to log into the account.

Note: They will send you your password by email. If you feel queasy about receiving your password by email, then use one that you don't mind receiving.

On the back of this piece of paper, take a moment to write down the username, email address, and maybe password that you used to sign up for the Alwaydata.com account.

Github.com

Github.com is the most popular git-based service you can use to store files.

Go to http://github.com/ and create an account. You can choose whatever username you want. Once it is configured, you can continue on through these setup instructions.

Testing

You might be itching to make sure you created these accounts properly. We'll test that later.

Section 2: Installing software

Different operating systems have different ways to install things.

Section 3: Configuring your accounts on the web

Alwaysdata: Enable SSH

  • Log into your Alwaysdata account at https://admin.alwaysdata.com/
  • In the left-hand side, underneath Remote access, click SSH
  • Click the gear icon for your user
  • Find the checkbox to enable SSH.
  • Click Submit!

Make sure Git and Github are working together

Follow the instructions carefully; for example, do call your repository Hello World as they suggest.

If it worked, you'll see a new repository listed in your Github.com account, and it will have a README file explaining what it is.

Friday is over

Chat with us! Ask questions! Go home!

Love,

Boston Python Workshop staff.

FIXME