mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-16 16:41:07 +00:00
Allows cachalot_settings to be imported directly from cachalot.
This commit is contained in:
parent
08db9e7ca3
commit
1d4caf4e24
2 changed files with 3 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ or simply by changing its attributes:
|
|||
|
||||
.. code:: python
|
||||
|
||||
from cachalot.settings import cachalot_settings
|
||||
from cachalot import cachalot_settings
|
||||
|
||||
with cachalot_settings(CACHALOT_ENABLED=False):
|
||||
# SQL queries are not cached in this block
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
from .settings import cachalot_settings
|
||||
|
||||
__version__ = (0, 5, 0, 'post')
|
||||
version_string = '.'.join(str(n) for n in __version__)
|
||||
|
|
|
|||
Loading…
Reference in a new issue