Commits

Gregory Petukhov  committed d1e1a7b

TYPHOON_HOMEPAGE_ITEM feature

  • Participants
  • Parent commits 3904d63

Comments (0)

Files changed (1)

File typhoon/templatetags/typhoon_tags.py

       this tag between two texts.
     """
 
+    if request.path in ('', '/') and hasattr(settings, 'TYPHOON_HOMEPAGE_ITEM'):
+        return settings.TYPHOON_HOMEPAGE_ITEM
+
     try:
         dbtext = anydbm.open(settings.TYPHOON_TEXT_DB, 'r')
         dbtext_size = len(dbtext)