Add separate version file.
[django-ssify.git] / ssify / __init__.py
index 591c70a..74c1108 100644 (file)
@@ -1,3 +1,7 @@
+# -*- coding: utf-8 -*-
+# This file is part of django-ssify, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See README.md for more information.
+#
 """
 Implements two-phase rendering using SSI statements.
 
@@ -8,22 +12,14 @@ Define views to be cached and included as SSI include
 with `ssi_included` decorator.
 
 """
+from __future__ import unicode_literals
 
-__version__ = '1.0'
-__date__ = '2014-08-26'
-__all__ = ('ssi_expect', 'SsiVariable', 'ssi_included', 'ssi_variable')
-
-from django.conf import settings
-from django.utils.functional import lazy
-
-SETTING = lazy(
-    lambda name, default: getattr(settings, name, default),
-    bool, int, list, tuple, unicode)
-
-INCLUDES_CACHES = SETTING('SSIFY_INCLUDES_CACHES', ('ssify',))
-DEBUG = SETTING('SSIFY_DEBUG', False)
-DEBUG_VERBOSE = SETTING('SSIFY_DEBUG_VERBOSE', True)
+from .version import VERSION
 
+__version__ = VERSION
+__date__ = '2014-08-26'
+__all__ = ('flush_ssi_includes', 'ssi_expect', 'SsiVariable', 'ssi_included', 'ssi_variable')
 
 from .variables import ssi_expect, SsiVariable
 from .decorators import ssi_included, ssi_variable
+from .cache import flush_ssi_includes