mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-14 23:53:09 +00:00
Don’t import cachalot_settings in __init__ to avoid an issue with pip when Django isn’t yet installed.
This commit is contained in:
parent
ea7b9f79cb
commit
65db345fbc
2 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,2 @@
|
|||
from .settings import cachalot_settings
|
||||
|
||||
__version__ = (0, 8, 0, 'post')
|
||||
version_string = '.'.join(str(n) for n in __version__)
|
||||
|
|
|
|||
Loading…
Reference in a new issue