From 58645bdff9a6e089b5ffe9dde0346ba33f1e43f6 Mon Sep 17 00:00:00 2001 From: nimaje Date: Mon, 7 Dec 2015 21:42:07 +0100 Subject: [PATCH] avoid starimports readme. list of functions moved don't use starimports so don't use them in examples. the second example for v2 is ok because there it is not clear which functions are needed. I think the list of functions should be in the section of v2. --- README.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index d4e1426d..6ae88e71 100755 --- a/README.md +++ b/README.md @@ -59,6 +59,29 @@ $ build_abilities() $ build moves() etc... ``` + + +## V2 Database setup + +Start Django shell +``` +$ python manage.py shell --settings=config.local +``` + +run the build script with +``` +$ from data.v2.build import build_all +$ build_all() +``` +Each time the build script is run it will iterate over each table in the database, wipe it and rewrite each row using the data found in data/v2/csv. +When building against sqlite we've heard it can take a ridiculously long time to finish building out the database. In this case you can set up just the portions of the db that you need. +``` +$ from data.v2.build import * +$ build_languages() +$ build_abilities() +... +``` + Heres a list of the data building functions - build_languages() - build_regions() @@ -87,29 +110,6 @@ Heres a list of the data building functions - build_pal_parks() -## V2 Database setup - -Start Django shell -``` -$ python manage.py shell --settings=config.local -``` - -run the build script with -``` -$ from data.v2.build import * -$ build_all() -``` -Each time the build script is run it will iterate over each table in the database, wipe it and rewrite each row using the data found in data/v2/csv. -When building against sqlite we've heard it can take a ridiculously long time to finish building out the database. In this case you can set up just the portions of the db that you need. -``` -$ from data.v2.build import * -$ build_languages() -$ build_abilities() -... -``` - -Here - ## Contributing All contributions are welcome: bug fixes, data contributions, recommendations.