Anonymous user
Adding a field to the profile: Difference between revisions
Undo revision 18879 by 86.51.26.15 (talk)
imported>Jacquiesue |
imported>Brittag (Undo revision 18879 by 86.51.26.15 (talk)) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 25:
== Getting the source ==
All the sample code in this walkthrough refers to version '''d56a354''' of the OpenHatch source. To make sure the code is in line with what you expect, follow the instructions on the [
$ git checkout d56a354 # Switch to that revision
Line 35:
<b>TODO: before continuing need to setup the DB for older version of code that you are trying to run</b>
The command is: <code>python manage.py migrate #####</code>
<b>How to determine what ##### should be
$ git log -1 # look at the most recent commit on the current branch
Line 300:
<div class="example"><pre>
$ python manage.
Syncing...
No fixtures found.
Line 339:
Now run the migration as described [http://openhatch.org/wiki/Making_schema_changes here].
<div class="example"><pre>
$
+ Added field birthday on profile.Person
Created 0090_auto__add_field_person_birthday.py. You can now apply this migration with: ./manage.py migrate profile
$
Running migrations for profile:
- Migrating forwards to 0090_auto__add_field_person_birthday.
Line 429:
Now run the test and let's make sure it passes!
<div class="example"><pre>
$
<test information will print here...>
|