The remainder of the build script has been converted to use
`bulk_create()`. Running the build script on my machine with a
PostgresQL database took only 5 minutes 40 seconds, and with
SQLite 26 minutes 18 seconds.
* badges
* Added CSV from Veekun
* added sprites from Veekun website
* quick fixes for an Exception
* bumped dependencies version
* add comment on how to upgrade to Django 1.11
* added some reminds to caching, our official wrappers and the true cost of the server
* remove index.html from sprites
* update to conform django-rest-framework 3.3.0 guidelines
* lint
I noticed that there was a duplicate PokemonGameIndex import in the original build.py for the v2 import. It's still in your updated build.py so I edited it out.
NOT TESTED YET! Buildscript has not finished yet (needed about 18h until now).
Made `data/v2/__init__.py` and `config/local.py` python3 compatible.
Writen helper functions because of repeating code:
+ `process_csv`
+ `build_generic`
useage demonstrated with `_build_languages`.
Writen `with_iter` for closing files automatical
when the processing has finished.
Writen for each group of models a function (named `build_`groupname)
and a function `build_all` which calls these functions.
-Added models for Pokemon, Moves, and all other remaining models.
-Added new models to build script
-Build script will now clean and reset auto-incrementers for each table
in pokeapi_co_db
-Build script now runs against both postgres and sqlite (dev)
-Added all models to admin site registry
-Added instructions for building out db in README
-Added models for Pokemon, Moves, and all other remaining models.
-Added new models to build script
-Build script will now clean and reset auto-incrementers for each table
in pokeapi_co_db
-Build script now runs against both postgres and sqlite (dev)
-Some v2 cvs files had no data in them. Pulled in the data from veekun
where necessary.
-Added all models to admin site registry
-Added instructions for building out db in README