Adding a field to the profile: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1: | Line 1: | ||
{{Hacking OpenHatch}} |
{{Hacking OpenHatch}} |
||
= The set-up = |
|||
⚫ | |||
Today, on November 17, 2010, [http://openhatch.org/people/paulproteus/ my OpenHatch profile] doesn't have a special field for my IRC nickname. When I go to edit my profile, there's no place to put it in! |
|||
In this walkthrough, we will explore the process of adding a new feature to the OpenHatch website. The change we will make will be done directly in the OpenHatch Django code. In so doing, we'll learn how to go from an idea for a top-level UI feature change, to searching and studying the code, to making and testing this change. |
|||
This tutorial walks you through adding that feature to the November 17, 2010 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. |
|||
⚫ | |||
== Skills you need == |
== Skills you need == |
||
Line 23: | Line 29: | ||
$ git checkout tutorial # Switch into that branch. |
$ git checkout tutorial # Switch into that branch. |
||
Here's how you can check that it worked: |
Here's how you can check that it worked. Run these commands in your new ''oh-mainline'' directory, and check that they have the same output as I've recorded: |
||
$ git log -1 # look at the most recent commit on the current branch |
$ git log -1 # look at the most recent commit on the current branch |