src/catedit/settings.py
author ymh <ymh.work@gmail.com>
Wed, 15 Apr 2015 03:35:04 +0200
changeset 106 dc00096a0fdc
parent 91 59450d864881
child 109 b5380791ca15
permissions -rw-r--r--
Added tag V00.02.03 for changeset 7bf8b028ccc1

"""
settings.py:
Contains all settings that are needed but are not to be changed
"""
from rdflib import Namespace


class AppSettings(object):

    # WTForms settings

    WTF_CSRF_ENABLED = True

    # RDF Namespace and prefixes - Must end with #

    BASE_NAMESPACE = "http://ld.iri-research.org/ontology/categorisation"
    CATEGORY_NAMESPACE = Namespace("http://ld.iri-research.org/ontology/categorisation/category#")
    CELERY_IGNORE_RESULT = False
    CELERY_TASK_SERIALIZER = 'json'
    CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml']
    CELERY_DISABLE_RATE_LIMITS = True