Just adding instructions

really complicated things
This commit is contained in:
Zane Adickes 2015-04-12 22:48:28 -04:00
parent 1882c47f90
commit 4890407482

View file

@ -1,3 +1,18 @@
# To build out the data you'll need to jump into the Django shell
#
# $ python manage.py shell
#
# and run the build script with
#
# $ execfile('data/v2/build.py')
#
# 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.
# If you don't need all of the data just go into data/v2/build.py and
# comment out everything but what you need to build the tables you're looking for.
# This might be useful because some of the csv files are massive
# (pokemon_moves expecially) and it can take about 25 minutes to build everything.
import csv
import os
from django.db import migrations, connection