INSTALL instruction
- Install django and its requirements: pip install -r requirements.txt
- Download nltk data: in python, type import nltk nltk.download()
** Configure the download path to /usr/local/share/nltk_data ** Download wordnet
** Configure django by creating a base/local_settings.py module that defines an options dict. See base/settings.py for necessary options (secret_key at least).
- jquery-autosuggest customization
In order to display name/value pairs (for disambiguation interface), the jquery-autosuggest component must be customized with the files located in custom/:
if JQ is set to the location of the jquery-autosuggest library (in a virtualenv context, $ENV/lib/python2.7/site-packages/taggit_autosuggest)
then
cp custom/jquery.autoSuggest.minified.js $JQ/static/jquery-autosuggest/js/jquery.autoSuggest.minified.js cp widgets.py $JQ/widgets.py
See https://github.com/oaubert/jquery-autosuggest/tree/fork for customization details.
- MySQL configuration
** MySQL configuration issues
MySQL must be configured to correctly handle utf8. According to http://mathiasbynens.be/notes/mysql-utf8mb4 , utf8mb4 is preferable to avoid being bitten by obscure characters.
configure mysql server with (on Debian, create a file
/etc/mysql/conf.d/utf8
)[client] default-character-set = utf8mb4
[mysql] default-character-set = utf8mb4
[mysqld] character-set-client-handshake = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci
create database with the SQL command
create database kadist DEFAULT CHARACTER SET utf8mb4;