Anonymous user
Importing a data snapshot: Difference between revisions
m
→In case of memory problems
imported>Blues chick (Updated instructions for loading a snapshot) |
imported>Onceuponatimeforever |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 31:
python manage.py loaddata ''2012-08-12.json.gz''
'''Note:''' This may take a long time (10-15 minutes) without any output. This is normal.
You'll see output that looks something like this:
Line 40 ⟶ 42:
python manage.py syncdb
You can test that it worked by loading up your local
== In case of memory problems ==
In case your operating system has problems with loading the giant set of all the production data, you can get the db file directly from http://inside.openhatch.org/snapshots/. The important critical step is to remember to change the name of the existing development db file to a different name (in case you need it later) and then you change the newly downloaded db file name to ''site.db''.
python manage.py syncdb --noinput --migrate
python manage.py migrate
python manage.py loaddata NAME_OF_SNAPSHOT.gz
== More about this ==
|