web/lib/tagging/settings.py
author ymh <ymh.work@gmail.com>
Fri, 04 Jun 2010 17:44:26 +0200
changeset 43 f4b9ce48a758
parent 11 f236caaceb43
permissions -rw-r--r--
Merge with a2c2ad538e9a7d45dff281636193a526011dde2b

"""
Convenience module for access of custom tagging application settings,
which enforces default settings when the main settings module does not
contain the appropriate settings.
"""
from django.conf import settings

# The maximum length of a tag's name.
MAX_TAG_LENGTH = getattr(settings, 'MAX_TAG_LENGTH', 50)

# Whether to force all tags to lowercase before they are saved to the
# database.
FORCE_LOWERCASE_TAGS = getattr(settings, 'FORCE_LOWERCASE_TAGS', False)