-CREM data import
-================
-* prototype : this directory contains scripts to perform an experimental
+==========================================
+CREM data import instructions and programs
+==========================================
+
+* ``prototype`` : this directory contains scripts to perform an experimental
import of the CREM database into Telemeta 0.3.x. It is only meant as a
proof of concept.
-* raw_conversion : instructions and scripts to perform a full raw conversion
+* ``raw_conversion`` : instructions and scripts to perform a full raw conversion
of the CREM database from 4D to MySQL. The result has the same structure
as the original 4D database, and, as such, can't be used directly in
Telemeta.
+
-== CREM data and how to import it into Telemeta 0.3.x ==
+==================================================
+CREM data and how to import it into Telemeta 0.3.x
+==================================================
Warning: the following instructions allow you to import the CREM's data
into telemeta. However, it is currently a rather data destructive process,
only meant for demonstration and testing purpose. Do not use this in a
production environment.
-1 - Install Telemeta upon MySQL. Initialize the database using Telemeta's
-Django models. Ensure that everything is running fine before going any
-further.
+1. Install Telemeta upon MySQL. Initialize the database using Telemeta's
+ Django models. Ensure that everything is running fine before going any
+ further.
-2 - Run prepare on the source directory. The source directory must contain
-text files as they were exported from the 4D database. These files are
-expected to be gzipped.
+2. Run prepare on the source directory. The source directory must contain
+ text files as they were exported from the 4D database. These files are
+ expected to be gzipped.
-Example:
-$ scripts/prepare src/2007-05-09
+ Example::
-3 - Use the import.sql script to insert the data into your MySQL database.
+ $ scripts/prepare src/2007-05-09
-Example:
-$ mysql your_telemeta_database < scripts/import.sql
+3. Use the import.sql script to insert the data into your MySQL database.
-4 - Copy the WAV test file of your choice, into <MEDIA_ROOT>/items/test.wav
-This single file is associated with all media items, for testing purpose.
+ Example::
+
+ $ mysql your_telemeta_database < scripts/import.sql
+
+4. Copy the WAV test file of your choice, into <MEDIA_ROOT>/items/test.wav
+ This single file is associated with all media items, for testing purpose.
That should be it. If you want to run Telemeta against SQLite instead of
MySQL, first follow the above instructions to import the data into MySQL.