Adding a field to the profile: Difference between revisions

no edit summary
imported>Jesstess
imported>Mark
No edit summary
Line 5:
[[File:Asheesh-profile-info-box.png|link=|left]]
 
Today, on NovemberJuly 174, 20102011, [http://openhatch.org/people/paulproteusMark/ my OpenHatch profile] doesn't have a special field for my IRC nicknamebirthday. When I go to edit my profile, there's no place to put it in!
 
This tutorial walks you through adding that feature to the NovemberJuly 174, 20102011 version of the OpenHatch code.
 
Together, we will change the OpenHatch source code, which builds on top of Django and Python. You'll see how to go all the way from a new feature idea to making and testing the change. On the way, you'll see how to search, study, and test your code.
Line 23:
== Getting the source ==
 
All the sample code in this walkthrough refers to version '''f69d180d56a354''' of the OpenHatch source. To make sure the code is in line with what you expect, follow the instructions on the [[getting started with the OpenHatch code]] page. But right after you do the "git clone", do these commands:
 
$ git checkout f69d180d56a354 # Switch to that revision
$ git branch tutorial # Create a branch called tutorial that points at that revision
$ git checkout tutorial # Switch into that branch.
Line 32:
 
$ git log -1 # look at the most recent commit on the current branch
commit d56a354403026a1c3ecd634f2731e7d98a9513ff
commit f69d1801bad777b8bd495d166433879c21500069
Author: Asheesh Laroia <asheesh@openhatchasheesh.org>
Date: Wed NovJun 1729 1711:2638:4431 20102011 -05000400
 
Add a config option that enables cookie sharing for Vanilla ProxyRequest-bas
profile/models.py: Remove unused field.
$ git branch # see what the current branch is named.
master
Line 44:
So far, so good? Let's dive in. (If not, [[chat with us on IRC]]!)
 
So that you and I see the same things, modify my actual profile! [[Importing a data snapshot|Import a data snapshot]] from NovemberJuly 164, 20102011 (or the most recent one before this date)!
 
= The 'What': What are we doing, again? =
 
On your own development instance, open up [http://127.0.0.1:8000/people/paulproteusMark/ AsheeshMark's OpenHatch profile] in a browser tab. Inside the "Info" box, there are sections like my "bio" and "web site". It should look like the screenshot at the top of this page.
 
Let's add a new one, "IRC nick".
Anonymous user