Importing a data snapshot: Difference between revisions

m
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 peopleprojects page and theensuring liveit one.is Donot youempty. haveAccess abouthttp://127.0.0.1:8000/projects/ the(and samecompare numberit ofto people?http://openhatch.org/projects/ Clickif onyou theselike!) things:to check.
 
* http://openhatch.org/people/
== In case of memory problems ==
* http://127.0.0.1:8000/people/
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 ==