Dunya is a prototype being developed in the context of CompMusic, a research project that studies several world music traditions from the point of view of the information technologies, with the aim to facilitate the cataloging and discovery of music recordings within large repositories. For more information: http://compmusic.upf.edu
Dunya is Copyright 2013-2018 Music Technology Group - Universitat Pompeu Fabra
Dunya is released under the terms of the GNU Affero General Public License (v3 or later). See the COPYING file for more information.
If you would prefer to get a (non FOSS) commercial license, please contact us at email@example.com
Using docker, run
to build the relevant packages, and then run
to start it.
Perform a database migration, and load fixture data
docker-compose run --rm web python manage.py migrate docker-compose run --rm web python manage.py loaddata carnatic_form.json carnatic_raaga.json carnatic_instrument.json carnatic_taala.json data_initial_data.json docserver_groups.json docserver_sourcefiletype.json sites.json hindustani_form.json hindustani_laya.json hindustani_taal.json hindustani_instrument.json hindustani_raag.json makam_form.json makam_instrument.json makam_makam.json makam_usul.json
Media files (entity images)
On the server, these files are stored in
You need to copy the directory to the
MEDIA_ROOT location in
We use the less css compiler for stylesheets. You'll need
lessc installed in order
to update them.
Some data in Dunya should only rarely change (e.g., Raaga, Taala, Form, Location, Language lists).
We store this data in fixtures, and it is automatically loaded when you create a new database.
Fixure files are in
fixtures/initial_data.json in the app (e.g.,
If you make a new fixture table, you can easily import data into it by creating a CSV file with the data in the first column and running
python tools/import_csv.py -t <fixturename> <csvfile>
You'll need to edit
import_csv.py to tell it about your table.
You should then dump the fixtures to file and commit them for other people to use
(you'll need to edit the
dumpfixture method in
fabfile.py to tell it about the
new fixture, too.
Find an nginx configuration file in the
Use this configuration for supervisor.
[program:dunya] environment=LANG='en_US.UTF-8',LC_ALL='en_US.UTF-8' user=dunya directory=/srv/dunya command=/srv/dunya/env/bin/python manage.py runfcgi daemonize=false socket=/tmp/dunya.sock umask=0 redirect_stderr=true stopasgroup=true
Dunya must also be installed on worker machines to run remote processes. This machine
will need access to the main database, configured in
Essentia should be installed into the virtual environment,
whole dunya directory should be owned by a user that has write permission to the
directory. Celery should run as this user too.
You need to make sure that this user can connect to github via ssh. Either log in as the
use and run
ssh github.com, or use https.
The celery configuration should have a queue and hostname configured that are the
-n). These settings are needed for remote control of a single worker.
The machines must also listen on the standard
celery queue for all other work.
[program:dunyacelery] # We need to set the path to include the virtualenv so that e.g. essentia gets the right pythonpath # Supervisor doesn't overwrite HOME or USER, so we need to add it so that os.path.expanduser works # set LD_LIBRARY_PATH so the python module _essentia.so can find libessentia.so environment=LANG='en_US.UTF-8',LC_ALL='en_US.UTF-8',PATH='/srv/dunya/env/bin:/usr/local/bin:/bin:/usr/bin',HOME='/home/dunya',USER='dunya',LD_LIBRARY_PATH='/srv/dunya/env/lib' user=dunya directory=/srv/dunya command=/srv/dunya/env/bin/celery -A dunya -n kora worker -l info -Q kora,celery redirect_stderr=true stopasgroup=true autorestart=true
One machine must listen on the
import queue. This is used for processes that run from