Commits

Gregory Petukhov committed d1e1a7b

TYPHOON_HOMEPAGE_ITEM feature

Comments (0)

Files changed (1)

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)