Adding a field to the profile: Difference between revisions

no edit summary
imported>Mark
No edit summary
imported>Mark
No edit summary
Line 52:
On your own development instance, open up [http://127.0.0.1:8000/people/Mark/ Mark'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, "Birthdaybirthday".
 
= The 'Where': finding the right spot to make changes =
Line 114:
 
<pre>
<h4>Birthdaybirthday</h4>
<p>January 1, 1980</p>
</pre>
Line 136:
{% endif %}
+ <h4>Birthdaybirthday</h4>
+ <p>January 1, 1980</p>
+
Line 154:
The next things to do are:
 
* Add something like person.homepage_url so that each person can have their own Birthdaybirthday.
* [[Making schema changes|Write a migration file]] to add that column to our database.
* Write a form so people can edit their Birthdaybirthday.
* Write a test.
 
Anonymous user