diff options
author | luxagraf <sng@luxagraf.net> | 2010-11-07 16:19:24 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2010-11-07 16:19:24 -0500 |
commit | 73ebbbe40330d212becffafdead3d6715c585b23 (patch) | |
tree | d24fa0410d19e3639eb5b58c50ceafedfe3369f4 /lib/tagging/settings.py | |
parent | 184271f10df3ae95c461dd8504699216f2ed041f (diff) |
removed mainmap.js, added tagging for legacy code
Diffstat (limited to 'lib/tagging/settings.py')
-rw-r--r-- | lib/tagging/settings.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/tagging/settings.py b/lib/tagging/settings.py new file mode 100644 index 0000000..1d6224c --- /dev/null +++ b/lib/tagging/settings.py @@ -0,0 +1,13 @@ +""" +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) |