src/catedit/settings.py
author durandn
Mon, 13 Apr 2015 18:13:14 +0200
changeset 98 4a493776539a
parent 91 59450d864881
child 109 b5380791ca15
permissions -rw-r--r--
cleaned up last small code from before using wtforms

"""
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