Changeset 9355
- Timestamp:
- 11/06/08 04:24:24 (2 months ago)
- Files:
-
- django/trunk/docs/howto/initial-data.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/howto/initial-data.txt
r8657 r9355 34 34 [ 35 35 { 36 "model": "myapp.person", 36 "model": "myapp.person", 37 37 "pk": 1, 38 38 "fields": { 39 39 "first_name": "John", 40 "last_name": "Lennon" ,40 "last_name": "Lennon" 41 41 } 42 42 }, 43 43 { 44 "model": "myapp.person", 44 "model": "myapp.person", 45 45 "pk": 2, 46 46 "fields": { 47 47 "first_name": "Paul", 48 "last_name": "McCartney" ,48 "last_name": "McCartney" 49 49 } 50 50 }, 51 51 ] 52 52 53 53 And here's that same fixture as YAML: 54 54 … … 65 65 first_name: Paul 66 66 last_name: McCartney 67 67 68 68 You'll store this data in a ``fixtures`` directory inside you app. 69 69
