mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-25 20:53:43 +00:00
Only add South in Django < 1.7.
This commit is contained in:
parent
57083451f1
commit
b2c9ba6346
1 changed files with 9 additions and 6 deletions
15
runtests.py
15
runtests.py
|
|
@ -47,13 +47,16 @@ DEFAULT_CACHE_KEY = os.environ.get('CACHE_BACKEND', 'locmem')
|
|||
CACHES['default'] = CACHES[DEFAULT_CACHE_KEY]
|
||||
del CACHES[DEFAULT_CACHE_KEY]
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'cachalot',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
]
|
||||
if django.VERSION < (1, 7):
|
||||
INSTALLED_APPS.append('south')
|
||||
|
||||
settings.configure(
|
||||
INSTALLED_APPS=(
|
||||
'cachalot',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'south',
|
||||
),
|
||||
INSTALLED_APPS=INSTALLED_APPS,
|
||||
DATABASES=DATABASES,
|
||||
CACHES=CACHES,
|
||||
MIDDLEWARE_CLASSES=(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue