Project

General

Profile

Setup And Install » History » Version 1

Luke Murphey, 11/16/2012 08:30 AM

1 1 Luke Murphey
h1. Setup And Install
2 1 Luke Murphey
3 1 Luke Murphey
h2. Install Prerequisites
4 1 Luke Murphey
5 1 Luke Murphey
h2. Install TextCritical Application
6 1 Luke Murphey
7 1 Luke Murphey
h2. Configure Initialize Database
8 1 Luke Murphey
9 1 Luke Murphey
<pre>
10 1 Luke Murphey
python manage.py syncdb
11 1 Luke Murphey
</pre>
12 1 Luke Murphey
13 1 Luke Murphey
h2. Import Works
14 1 Luke Murphey
15 1 Luke Murphey
You will need to import the works into the library in order to have something for the site to provide access to. The easy way to do this is to use a prebuilt library. The more difficult way is to import the works yourself.
16 1 Luke Murphey
17 1 Luke Murphey
h3. Using Existing Library
18 1 Luke Murphey
19 1 Luke Murphey
To use an existing library, copy the library.sqlite file to the server. By default, it should be placed in the src directory.
20 1 Luke Murphey
21 1 Luke Murphey
h3. Importing Works
22 1 Luke Murphey
23 1 Luke Murphey
If you want to import works manually, then following the steps below.
24 1 Luke Murphey
25 1 Luke Murphey
First, initialize the library database.
26 1 Luke Murphey
27 1 Luke Murphey
<pre>
28 1 Luke Murphey
python manage.py syncdb --database=library
29 1 Luke Murphey
</pre>
30 1 Luke Murphey
31 1 Luke Murphey
Next, download the relevant works. The Perseus works can be obtained from "Perseus.tufts.edu":http://www.perseus.tufts.edu/hopper/opensource/download. Decompress the archive.
32 1 Luke Murphey
33 1 Luke Murphey
Start the import process by running the following command substituting "/Users/Luke/Perseus_Directory" with the location where you placed the files:
34 1 Luke Murphey
35 1 Luke Murphey
<pre>
36 1 Luke Murphey
python manage.py batch_import_perseus -d "/Users/Luke/Perseus_Directory"
37 1 Luke Murphey
</pre>
38 1 Luke Murphey
39 1 Luke Murphey
h2. Start Web Server