Adding a field to the profile: Difference between revisions

no edit summary
imported>Jacquiesue
imported>Jacquiesue
No edit summary
Line 300:
 
<div class="example"><pre>
$ python manage./bin/mysitepy syncdb
Syncing...
No fixtures found.
Line 339:
Now run the migration as described [http://openhatch.org/wiki/Making_schema_changes here].
<div class="example"><pre>
$ bin/mysitepython manage.py schemamigration profile --auto
+ 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
 
$ bin/mysitepython 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>
$ bin/mysitepython manage.py test profile.EditBirthday
 
<test information will print here...>
Anonymous user