One function for each group of models¬

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.
This commit is contained in:
Benjamin Takacs 2015-12-05 12:13:46 +01:00
parent ea0d5c7ab3
commit 5e5854fb7b
3 changed files with 1709 additions and 1646 deletions

View file

@ -1,4 +1,4 @@
from settings import *
from .settings import *
DATABASES = {
'default': {

View file

@ -1 +1 @@
from build import *
from .build import *

File diff suppressed because it is too large Load diff