Importing a data snapshot: Difference between revisions

m
How to use a db file
imported>Ehashman
(→‎How to use a snapshot: Update import documentation)
imported>Onceuponatimeforever
m (How to use a db file)
Line 43:
 
You can test that it worked by loading up your local projects page and ensuring it is not empty. Access http://127.0.0.1:8000/projects/ (and compare it to http://openhatch.org/projects/ if you like!) to check.
 
== 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 inside.openhatch.org/snapshots. The important critical step is to change the name of the existing development db file to a different name so that you do not overwrite it later and then you change the new 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 ==