Skip to content
John Heasly edited this page Nov 19, 2017 · 13 revisions

How to update civic_calendar2 with civic_calendar data

  1. Log in to civic_calendar on live django110 server, use Django utility dumpdata to export Entity, Location model data. Probably won't need to export Jursidiction (unless there's been a new city/town added).
$ python manage.py dumpdata civic_calendar.entity --format=json --indent=2 --settings=django_root.settings.production > civic_calendar.entity.json
$ python manage.py dumpdata civic_calendar.location --format=json --indent=2 --settings=django_root.settings.production > civic_calendar.location.json
  1. Do the munge dance as you may have Entity and/or Location data that references an uncreated/non-existent Schedule.Event and/or User.
  2. Search and replace civic_calendar.entity with civic_calendar2.entity.
  3. Search and replace civic_calendar.location with civic_calendar2.location.
  4. loaddata into your django111 civic_calendar2 app.
Clone this wiki locally