From 5afd50fcf0f783a0137c548ca4848ff2bb3cd3bf Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Tue, 31 Jan 2017 17:21:51 +0000 Subject: [PATCH] Update old django settings Use the new test runner Discover Runner and no longer specify autocommit as it's on by default now --- cabot/settings.py | 3 +-- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cabot/settings.py b/cabot/settings.py index 7fc5108..3d0032e 100644 --- a/cabot/settings.py +++ b/cabot/settings.py @@ -22,8 +22,7 @@ if os.environ.get('CABOT_FROM_EMAIL'): DATABASES = {'default': dj_database_url.parse(os.environ["DATABASE_URL"])} -if not DEBUG: - DATABASES['default']['OPTIONS'] = {'autocommit': True} +TEST_RUNNER = 'django.test.runner.DiscoverRunner' URL_PREFIX = os.environ.get('URL_PREFIX', '/').rstrip("/") diff --git a/requirements.txt b/requirements.txt index 66a5481..84fb1a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ amqp<2.0 anyjson==0.3.3 argparse==1.2.1 celery[redis]==3.1.23 -dj-database-url==0.2.2 +dj-database-url==0.4.2 django-appconf==0.6 django-celery==3.1.17 django-compressor==1.4