mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-26 13:20:26 +00:00
Just adding instructions
really complicated things
This commit is contained in:
parent
1882c47f90
commit
4890407482
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue