web/lib/tagging/settings.py
author ymh <ymh.work@gmail.com>
Fri, 22 Jan 2010 18:23:34 +0100
changeset 11 f236caaceb43
permissions -rw-r--r--
add pois
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
"""
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
Convenience module for access of custom tagging application settings,
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
which enforces default settings when the main settings module does not
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
contain the appropriate settings.
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
"""
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
from django.conf import settings
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
# The maximum length of a tag's name.
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
MAX_TAG_LENGTH = getattr(settings, 'MAX_TAG_LENGTH', 50)
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
# Whether to force all tags to lowercase before they are saved to the
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
# database.
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
FORCE_LOWERCASE_TAGS = getattr(settings, 'FORCE_LOWERCASE_TAGS', False)