web/lib/tagging/settings.py
changeset 11 f236caaceb43
equal deleted inserted replaced
10:7207a5a27b8f 11:f236caaceb43
       
     1 """
       
     2 Convenience module for access of custom tagging application settings,
       
     3 which enforces default settings when the main settings module does not
       
     4 contain the appropriate settings.
       
     5 """
       
     6 from django.conf import settings
       
     7 
       
     8 # The maximum length of a tag's name.
       
     9 MAX_TAG_LENGTH = getattr(settings, 'MAX_TAG_LENGTH', 50)
       
    10 
       
    11 # Whether to force all tags to lowercase before they are saved to the
       
    12 # database.
       
    13 FORCE_LOWERCASE_TAGS = getattr(settings, 'FORCE_LOWERCASE_TAGS', False)