Update old django settings

Use the new test runner Discover Runner and no longer specify autocommit
as it's on by default now
This commit is contained in:
Frank Hamand 2017-01-31 17:21:51 +00:00
parent 9a4c723ea0
commit 5afd50fcf0
2 changed files with 2 additions and 3 deletions

View File

@ -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("/")

View File

@ -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