From 73ebbbe40330d212becffafdead3d6715c585b23 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 7 Nov 2010 16:19:24 -0500 Subject: removed mainmap.js, added tagging for legacy code --- lib/tagging/settings.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/tagging/settings.py (limited to 'lib/tagging/settings.py') 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) -- cgit v1.2.3-70-g09d2