From 65db345fbc52327aff454a9286cd2cc605ac0963 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Tue, 28 Oct 2014 19:00:24 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20import=20cachalot=5Fsettings=20?= =?UTF-8?q?in=20=5F=5Finit=5F=5F=20to=20avoid=20an=20issue=20with=20pip=20?= =?UTF-8?q?when=20Django=20isn=E2=80=99t=20yet=20installed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.rst | 2 +- cachalot/__init__.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 99ba27f..3714ac3 100644 --- a/README.rst +++ b/README.rst @@ -68,7 +68,7 @@ or simply by changing its attributes: .. code:: python - from cachalot import cachalot_settings + from cachalot.settings import cachalot_settings with cachalot_settings(CACHALOT_ENABLED=False): # SQL queries are not cached in this block diff --git a/cachalot/__init__.py b/cachalot/__init__.py index 1ba593c..856964c 100644 --- a/cachalot/__init__.py +++ b/cachalot/__init__.py @@ -1,4 +1,2 @@ -from .settings import cachalot_settings - __version__ = (0, 8, 0, 'post') version_string = '.'.join(str(n) for n in __version__)