From adddd3ff8630bb8c5fc7355bcd0d09f226353f67 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 14 Oct 2015 19:40:29 +0200 Subject: Using Orator migrations --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ac2295f..6d44631 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3