| author | ymh <ymh.work@gmail.com> |
| Fri, 22 Jan 2010 18:23:34 +0100 | |
| changeset 11 | f236caaceb43 |
| permissions | -rw-r--r-- |
| 11 | 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) |