[Solved]-Autocommit Migration from Django 1.7 to 1.8


The following was outlined in the Django 1.7 Databases docs:

In previous versions of Django, database-level autocommit could be enabled by setting the autocommit key in the OPTIONS part of your database configuration in DATABASES.

Since Django 1.6, autocommit is turned on by default. This configuration is ignored and can be safely removed.

And as per the 1.8 Release Notes, this feature was removed.

If you still want to keep the setting for some reason, simply move it out of OPTIONS:

    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'HOST': 'localhost',
        'PORT': '5432',
        'NAME': 'bp_django_auth',
        'USER': 'postgres',
        'PASSWORD': 'abcd1234',
        'AUTOCOMMIT': True,

Leave a comment