-
Notifications
You must be signed in to change notification settings - Fork 0
Home
John Heasly edited this page Nov 19, 2017
·
13 revisions
- Log in to
civic_calendar
on livedjango110
server, use Django utilitydumpdata
to exportEntity
,Location
model data. Probably won't need to exportJursidiction
(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
- Do the munge dance as you may have
Entity
and/orLocation
data that references an uncreated/non-existentSchedule.Event
and/orUser
. - Search and replace
civic_calendar.entity
withcivic_calendar2.entity
. - Search and replace
civic_calendar.location
withcivic_calendar2.location
. -
loaddata
into yourdjango111
civic_calendar2
app.