Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings.py 928B

12345678910111213141516171819202122232425
  1. from django.conf import settings
  2. from taggit_templatetags2.compat import get_model
  3. # define the minimal weight of a tag in the tagcloud
  4. TAGCLOUD_MIN = getattr(settings, 'TAGGIT_TAGCLOUD_MIN', 1.0)
  5. # define the maximum weight of a tag in the tagcloud
  6. TAGCLOUD_MAX = getattr(settings, 'TAGGIT_TAGCLOUD_MAX', 6.0)
  7. # define the default models for tags and tagged items
  8. TAG_MODEL = getattr(settings, 'TAGGIT_TAG_MODEL', ('taggit', 'Tag'))
  9. TAG_MODEL = get_model(*TAG_MODEL)
  10. TAGGED_ITEM_MODEL = \
  11. getattr(settings, 'TAGGIT_TAGGED_ITEM_MODEL', ('taggit', 'TaggedItem'))
  12. TAGGED_ITEM_MODEL = get_model(*TAGGED_ITEM_MODEL)
  13. TAG_FIELD_RELATED_NAME = \
  14. getattr(settings, 'TAGGIT_TAG_FIELD_RELATED_NAME', 'taggeditem_items')
  15. LIMIT = getattr(settings, 'TAGGIT_LIMIT', 10)
  16. TAG_LIST_ORDER_BY = getattr(settings, 'TAGGIT_TAG_LIST_ORDER_BY', '-num_times')
  17. TAG_CLOUD_ORDER_BY = getattr(settings, 'TAGGIT_TAG_CLOUD_ORDER_BY', 'name')