To install the OppiaMobile server you will first need to have a running Django server installation with both the South and TastyPie libraries installed. We recommend that you use virtualenv to sandbox your python libraries from others on your server.
Run python manage syncdb to create the tables for South and TastyPie in your database (if you haven’t already done so during their installations)
Apply the following fix for TastyPie: https://github.com/toastdriven/django-tastypie/commit/520b33f39d8878813d8192c4b1a8fd554bca15fa (this is for TastyPie 0.9.15 - hopefully more recent versions will already include this fix). A patch file (timezone.patch) is included in the oppia/utils directory to make this fix easy for you
Install OppiaMobile, run pip install django-oppia
Add oppia and oppia.quiz to your INSTALLED_APPS like this:
INSTALLED_APPS = (
...
'oppia',
'oppia.quiz'
)
Add the following code:
from oppia import local_settings
local_settings.modify(globals())
Ensure you have the following standard Django settings configured:
Add a new setting COURSE_UPLOAD_DIR, this should a read/writable directory by your webserver user, for example:
COURSE_UPLOAD_DIR = '/home/uploads/'
This directory will store any uploaded courses, but it should not be web accessible (the server app will control access to the downloads)
Include the oppia URLconf in your project urls.py like this:
url(r'^oppia/', include('oppia.urls')),
Run python manage.py migrate oppia and python manage.py migrate oppia.quiz to create the oppia models.
Run python manage.py collectstatic this will copy all the required javascript, images, css and other static files are copied to your STATIC_ROOT
Your OppiaMobile server should now be up and running: http://localhost:8000/oppia/
TODO: add info about running cron