Skip to content

Commit

Permalink
no cache option
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Jun 3, 2016
1 parent aecce6d commit 29c0d9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion intranet/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
TJSTAR_MAP = None # type: bool
ADMINS = None # type: List[Tuple[str,str]]
USE_SASL = True

NO_CACHE = False
try:
from .secret import * # noqa
except ImportError:
Expand Down Expand Up @@ -418,6 +418,9 @@ def get_month_seconds():
"KEY_PREFIX": VIRTUAL_ENV
}

if NO_CACHE:
CACHES["default"]["BACKEND"] = "django.core.cache.backends.dummy.DummyCache"

# LDAP configuration
AD_REALM = "LOCAL.TJHSST.EDU" # Active Directory (LOCAL) Realm
CSL_REALM = "CSL.TJHSST.EDU" # CSL Realm
Expand Down

0 comments on commit 29c0d9f

Please sign in to comment.