n'utiliser 'south' que si la base n'est pas sqlite3

This commit is contained in:
Thomas NOËL 2012-07-25 01:37:23 +02:00
parent 1a9400732a
commit 5893b2d727
1 changed files with 5 additions and 1 deletions

View File

@ -131,7 +131,7 @@ TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
)
INSTALLED_APPS = (
'south',
# note: 'south' will be added here only if database is not sqlite (see below)
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
@ -205,6 +205,10 @@ try:
except:
pass
# use South, unless if database is sqlite3
if DATABASES['default']['ENGINE'] != 'django.db.backends.sqlite3':
INSTALLED_APPS = ('south',) + INSTALLED_APPS
# CAS
if CAS_SERVER_URL: