From 4c392a1baaecd60161e5812e9559d7e500cb8f2a Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Sat, 10 Jun 2017 12:30:53 +1000 Subject: [PATCH 1/2] Remove sponsor fixtures The sponsor fixtures don't work with our current site. Remove them to make loading easier. --- fixtures/sponsor_benefits.json | 119 --------------------------------- fixtures/sponsor_levels.json | 35 ---------- 2 files changed, 154 deletions(-) delete mode 100644 fixtures/sponsor_benefits.json delete mode 100644 fixtures/sponsor_levels.json diff --git a/fixtures/sponsor_benefits.json b/fixtures/sponsor_benefits.json deleted file mode 100644 index 76193a4a..00000000 --- a/fixtures/sponsor_benefits.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - { - "pk": 2, - "model": "symposion_sponsorship.benefit", - "fields": { - "type": "weblogo", - "name": "Web Logo", - "description": "Logo to appear on the website" - } - }, - { - "pk": 3, - "model": "symposion_sponsorship.benefit", - "fields": { - "type": "file", - "name": "Print Logo", - "description": "Logo to appear in print" - } - }, - { - "pk": 4, - "model": "symposion_sponsorship.benefit", - "fields": { - "type": "text", - "name": "Sponsor Description", - "description": "Description to appear on website and in print" - } - }, - { - "pk": 9, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 4, - "max_words": null, - "level": 1 - } - }, - { - "pk": 5, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 3, - "max_words": null, - "level": 1 - } - }, - { - "pk": 1, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 2, - "max_words": null, - "level": 1 - } - }, - { - "pk": 10, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 4, - "max_words": null, - "level": 2 - } - }, - { - "pk": 6, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 3, - "max_words": null, - "level": 2 - } - }, - { - "pk": 2, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 2, - "max_words": null, - "level": 2 - } - }, - { - "pk": 11, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 4, - "max_words": null, - "level": 3 - } - }, - { - "pk": 7, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 3, - "max_words": null, - "level": 3 - } - }, - { - "pk": 3, - "model": "symposion_sponsorship.benefitlevel", - "fields": { - "other_limits": "", - "benefit": 2, - "max_words": null, - "level": 3 - } - } -] diff --git a/fixtures/sponsor_levels.json b/fixtures/sponsor_levels.json deleted file mode 100644 index d66b0348..00000000 --- a/fixtures/sponsor_levels.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "pk": 1, - "model": "symposion_sponsorship.sponsorlevel", - "fields": { - "conference": 1, - "description": "", - "cost": 10000, - "name": "Gold", - "order": 0 - } - }, - { - "pk": 2, - "model": "symposion_sponsorship.sponsorlevel", - "fields": { - "conference": 1, - "description": "", - "cost": 5000, - "name": "Silver", - "order": 1 - } - }, - { - "pk": 3, - "model": "symposion_sponsorship.sponsorlevel", - "fields": { - "conference": 1, - "description": "", - "cost": 2000, - "name": "Bronze", - "order": 2 - } - } -] From b4dd6e9e4ab68cce88f86051878c5b0642097679 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Sat, 10 Jun 2017 12:34:39 +1000 Subject: [PATCH 2/2] Add fixture data to the README The site requires you to have some basic data installed in your database before running. This is located in the fixtures file and so the README should tell people to install this data. --- README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.rst b/README.rst index ac32f5b5..a8ab105a 100644 --- a/README.rst +++ b/README.rst @@ -68,3 +68,11 @@ Shut down and now run: ``./manage.py populate_inventory`` Now you can run the system and see how it goes. + +Base Data +~~~~~~~~~ + +On initial creation and whenever you reset the database you must reload the +basic data. This data is stored in the /fixtures directory. You can load this with: + +``./manage.py loaddata ./fixtures/*.json``