diff options
author | Camil Staps | 2015-10-14 19:40:29 +0200 |
---|---|---|
committer | Camil Staps | 2015-10-14 19:40:29 +0200 |
commit | adddd3ff8630bb8c5fc7355bcd0d09f226353f67 (patch) | |
tree | ae26c76eb0a9d7bdc496885bba2105ae00f19e5a /README.md | |
parent | Only insert from dump when non-empty (diff) |
Using Orator migrations
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -11,14 +11,15 @@ Install the necessary packages: # pip3 install orator click -First we need to setup an SQLite database: +Edit the `config.py` to suit your needs. Then initialise the database: - $ ./cli.py init pyble.db + $ orator migrations:run -c config.py # Create schema + $ ./cli.py init # Fill with standard data You're going to need one or several translations. One possibility is to [get them from Bible Hub][biblehubdb] (take the "Text file (zipped, 5.5MB)"). Download and unzip the zipped text file, then run: $ unzip bibles.zip - $ ./cli.py load --type=biblehub bibles.txt pyble.db + $ ./cli.py load --type=biblehub bibles.txt $ rm bibles.zip bibles.txt ## To do |