My favorites | Sign in
Logo
                
Search
for
Updated Jul 14, 2009 by WestonRuter
Labels: Phase-Support, Phase-Implementation, Featured
GettingStarted  
How to checkout the code and get to work.

Introduction

This page describes how to checkout the code and get to work testing and/or expanding the code.

To Get the Code

Personal Settings

You must create a file named "local_settings.py" which lives in the same directory as "settings.py" which contains the following information:

   SECRET_KEY
   DATABASE_* constants
   TIME_ZONE 

Building

You may either build the system database from the raw manuscript data from scratch (it may take a few hours to import and merge all of the manuscripts), or you can populate the database with a SQL dump from a database already built (recommended).

To start from scratch, run the commands found in build.sh (or, just run build.sh):

> python manage.py syncdb
> cd data/manuscripts
> python import.py
> python merge.py

To use the SQL dump, download the SQL dump from http://openscriptures.org/files/supplemental_data.sql.zip, extract the contents, and run commands such as:

> python manage.py syncdb
> mysql -u root -p DBNAME < supplemental_data.sql 

Note: If you are getting an error when running python manage.py syncdb you may need make sure that the name of the folder in which the code lives is "openscriptures" and not something else.


Sign in to add a comment
Hosted by Google Code