Commit cb06dc86 authored by Faidon Liambotis's avatar Faidon Liambotis
Browse files

Add a programatic way of setting InnoDB for MySQL

Instead of having a commented-out options init_command section for
setting the InnoDB storage engine, add a programatic way (still in
parent 83bc5f60
......@@ -27,13 +27,14 @@ DATABASES = {
'HOST': '',
# Set to empty string for default. Not used with sqlite3.
'PORT': '',
# Uncomment for MySQL
# 'init_command': 'SET storage_engine=INNODB',
if DATABASES['default']['ENGINE'].endswith('mysql'):
DATABASES['default']['OPTIONS'] = {
'init_command': 'SET storage_engine=INNODB',
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
# Local time zone for this installation. Choices can be found here:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment